From 233d48c9f1b7d57da63e1c37abda4271bad05655 Mon Sep 17 00:00:00 2001 From: Thomas BESSOU Date: Sat, 6 Apr 2024 16:06:24 +0200 Subject: [PATCH] fix warnings --- src/cmd.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmd.rs b/src/cmd.rs index 0f82616..b8c4ed9 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -80,6 +80,7 @@ pub struct MgrMetadata { pub os: String, // other metadata not captured through the above attributes #[serde(flatten)] + #[allow(unused)] // used for debug and deserialization other_meta: Option>, } @@ -184,6 +185,7 @@ pub struct OsdMetadata { pub objectstore_meta: ObjectStoreMeta, // other metadata not captured through the above attributes #[serde(flatten)] + #[allow(unused)] // used for debug and deserialization other_meta: Option>, } @@ -223,6 +225,7 @@ pub struct PgSummary { pub num_keys_recovered: Option, // other metadata not captured through the above attributes #[serde(flatten)] + #[allow(unused)] // used for debug and deserialization other_meta: Option>, } @@ -290,8 +293,11 @@ pub enum ExtraProbePeer { #[derive(Deserialize, Debug)] pub struct AddrVec { + #[allow(unused)] // used for debug and deserialization r#type: String, + #[allow(unused)] // used for debug and deserialization addr: String, + #[allow(unused)] // used for debug and deserialization nonce: i32, }