Skip to content

Commit

Permalink
Add lintfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Nov 3, 2024
1 parent 2336f45 commit aab2ca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions sysmaster/src/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 1 addition & 7 deletions sysminion/src/traits/systraits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Value>,
}
Expand Down Expand Up @@ -115,9 +115,3 @@ impl SystemTraits {
log::debug!("Reading custon static traits data")
}
}

impl Default for SystemTraits {
fn default() -> Self {
Self { data: Default::default() }
}
}

0 comments on commit aab2ca1

Please sign in to comment.