diff --git a/sysmaster/src/master.rs b/sysmaster/src/master.rs index 0a7c026b..508b01a7 100644 --- a/sysmaster/src/master.rs +++ b/sysmaster/src/master.rs @@ -63,6 +63,7 @@ pub(crate) async fn master(cfg: MasterConfig) -> Result<(), SysinspectError> { }); // Handle incoming messages from minions + #[allow(clippy::while_let_loop)] tokio::spawn(async move { loop { if let Some((msg, client_id)) = client_rx.recv().await { diff --git a/sysminion/src/traits/systraits.rs b/sysminion/src/traits/systraits.rs index 5f911513..d570daf9 100644 --- a/sysminion/src/traits/systraits.rs +++ b/sysminion/src/traits/systraits.rs @@ -4,7 +4,7 @@ use indexmap::IndexMap; use serde_json::{json, Value}; /// SystemTraits contains a key/value of a system properties. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Default)] pub struct SystemTraits { data: IndexMap, } @@ -115,9 +115,3 @@ impl SystemTraits { log::debug!("Reading custon static traits data") } } - -impl Default for SystemTraits { - fn default() -> Self { - Self { data: Default::default() } - } -}