From 31d1b536d5c9fcda628e874e5ca536d8abbfe711 Mon Sep 17 00:00:00 2001 From: Kenneth Sheridan Date: Tue, 5 Nov 2024 20:42:54 -0800 Subject: [PATCH] added warnings silencers --- build/release/hardware_report-linux-x86_64 | Bin 2198024 -> 2198024 bytes src/main.rs | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build/release/hardware_report-linux-x86_64 b/build/release/hardware_report-linux-x86_64 index 84fa5049c57c8ee409813f537dcbed8e3127c158..35d386f84c5561206d634c3ccb599937dcbe6e28 100755 GIT binary patch delta 176 zcmWm0I}Ua$?IO9|AKzq~zV`3u=jbGMqENv9MU+rR1y$5gM*~f?&_)Mc^w5XK07Dpz bFvbK^%rM6SOYbCDYh~ly1PFa@R-3~Qqai>{ diff --git a/src/main.rs b/src/main.rs index 0dae3a7..c0587da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,6 @@ use serde::{Deserialize, Serialize}; use std::collections::{HashMap, HashSet}; use std::error::Error; use std::process::Command; -use toml; /// CPU topology information #[derive(Debug, Serialize, Deserialize)] @@ -263,10 +262,17 @@ struct IbInterface { rate: String, } +#[allow(dead_code)] struct NumaInfo { nodes: Vec, } +#[allow(unused_variables)] +#[allow(unused_assignments)] +#[allow(clippy::useless_format)] +#[allow(clippy::manual_map)] +#[allow(clippy::format_in_format_args)] +#[allow(clippy::needless_borrows_for_generic_args)] impl ServerInfo { /// Checks for required system dependencies and returns any missing ones fn check_dependencies() -> Result, Box> {