From 9b2e8a72610612cd65a6458b251e677437ca55fd Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Tue, 29 Oct 2024 16:23:09 +0000 Subject: [PATCH] fix: warning --- .../solana/pyth_solana_receiver_sdk/src/price_update.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs b/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs index 8efe64cd57..405e1f253b 100644 --- a/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs +++ b/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs @@ -28,7 +28,10 @@ use { /// Using partially verified price updates is dangerous, as it lowers the threshold of guardians that need to collude to produce a malicious price update. #[derive(AnchorSerialize, AnchorDeserialize, Copy, Clone, PartialEq, BorshSchema, Debug)] pub enum VerificationLevel { - Partial { num_signatures: u8 }, + Partial { + #[allow(unused)] + num_signatures: u8, + }, Full, }