Explorar o código

fix(pyth-solana-receiver-sdk): remove lint reason (#3048)

Tejas Badadare hai 2 meses
pai
achega
b57e6a27ff

+ 1 - 1
target_chains/solana/pyth_solana_receiver_sdk/Cargo.lock

@@ -1143,7 +1143,7 @@ dependencies = [
 
 [[package]]
 name = "pyth-solana-receiver-sdk"
-version = "1.0.0"
+version = "1.0.1"
 dependencies = [
  "anchor-lang",
  "hex",

+ 1 - 1
target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "pyth-solana-receiver-sdk"
-version = "1.0.0"
+version = "1.0.1"
 description = "SDK for the Pyth Solana Receiver program"
 authors = ["Pyth Data Association"]
 repository = "https://github.com/pyth-network/pyth-crosschain"

+ 2 - 4
target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs

@@ -329,10 +329,8 @@ pub mod tests {
 
     #[test]
     fn check_size() {
-        #[allow(
-            deprecated,
-            reason = "borsh0_10 is deprecated, v1::get_packed_len should be used in the future"
-        )]
+        // borsh0_10 is deprecated, v1::get_packed_len should be used in the future
+        #[allow(deprecated)]
         let len = PriceUpdateV2::DISCRIMINATOR.len() + borsh0_10::get_packed_len::<PriceUpdateV2>();
         assert_eq!(len, PriceUpdateV2::LEN);
     }