From 74792f0ddf0a184e17c98877d9f531282cdce92f Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Sun, 31 Dec 2023 04:28:44 +0000 Subject: [PATCH] other: quick lint fixes for some warnings (#1367) --- src/canvas/widgets/cpu_basic.rs | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/canvas/widgets/cpu_basic.rs b/src/canvas/widgets/cpu_basic.rs index 6c87804a..e04d497f 100644 --- a/src/canvas/widgets/cpu_basic.rs +++ b/src/canvas/widgets/cpu_basic.rs @@ -78,7 +78,7 @@ impl Painter { // Very ugly way to sync the gauge limit across all gauges. let hide_parts = columns - .get(0) + .first() .map(|col| { if col.width >= 12 { LabelLimit::None diff --git a/src/lib.rs b/src/lib.rs index 5614c888..389143bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,6 +61,7 @@ pub mod data_conversion; pub mod options; pub mod widgets; +#[allow(unused_imports)] pub use utils::logging::*; #[cfg(target_family = "windows")]