From 6a91dd46cd28b5f16a74c9bbcda7c453d17a5d86 Mon Sep 17 00:00:00 2001 From: Csaba Date: Thu, 7 Nov 2024 00:09:43 +0100 Subject: [PATCH] ignore unused --- komorebi-bar/src/battery.rs | 2 +- komorebi-bar/src/cpu.rs | 2 +- komorebi-bar/src/date.rs | 2 +- komorebi-bar/src/komorebi.rs | 2 +- komorebi-bar/src/media.rs | 2 +- komorebi-bar/src/memory.rs | 2 +- komorebi-bar/src/network.rs | 2 +- komorebi-bar/src/storage.rs | 2 +- komorebi-bar/src/time.rs | 2 +- komorebi-bar/src/widget.rs | 6 +++--- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/komorebi-bar/src/battery.rs b/komorebi-bar/src/battery.rs index 6c9c0a50..da0ea8d3 100644 --- a/komorebi-bar/src/battery.rs +++ b/komorebi-bar/src/battery.rs @@ -116,7 +116,7 @@ impl Battery { } impl BarWidget for Battery { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let output = self.output(); if !output.is_empty() { diff --git a/komorebi-bar/src/cpu.rs b/komorebi-bar/src/cpu.rs index c775a46b..97b5a6f4 100644 --- a/komorebi-bar/src/cpu.rs +++ b/komorebi-bar/src/cpu.rs @@ -71,7 +71,7 @@ impl Cpu { } impl BarWidget for Cpu { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let output = self.output(); if !output.is_empty() { diff --git a/komorebi-bar/src/date.rs b/komorebi-bar/src/date.rs index 86530343..423c8f47 100644 --- a/komorebi-bar/src/date.rs +++ b/komorebi-bar/src/date.rs @@ -87,7 +87,7 @@ impl Date { } impl BarWidget for Date { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let mut output = self.output(); if !output.is_empty() { diff --git a/komorebi-bar/src/komorebi.rs b/komorebi-bar/src/komorebi.rs index 74f6c63a..f620756e 100644 --- a/komorebi-bar/src/komorebi.rs +++ b/komorebi-bar/src/komorebi.rs @@ -123,7 +123,7 @@ pub struct Komorebi { } impl BarWidget for Komorebi { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { let mut komorebi_notification_state = self.komorebi_notification_state.borrow_mut(); if self.workspaces.enable { diff --git a/komorebi-bar/src/media.rs b/komorebi-bar/src/media.rs index 7764a930..aef29356 100644 --- a/komorebi-bar/src/media.rs +++ b/komorebi-bar/src/media.rs @@ -79,7 +79,7 @@ impl Media { } impl BarWidget for Media { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let output = self.output(); if !output.is_empty() { diff --git a/komorebi-bar/src/memory.rs b/komorebi-bar/src/memory.rs index 0885fbc0..28d6616a 100644 --- a/komorebi-bar/src/memory.rs +++ b/komorebi-bar/src/memory.rs @@ -74,7 +74,7 @@ impl Memory { } impl BarWidget for Memory { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let output = self.output(); if !output.is_empty() { diff --git a/komorebi-bar/src/network.rs b/komorebi-bar/src/network.rs index d18464cd..7d06af21 100644 --- a/komorebi-bar/src/network.rs +++ b/komorebi-bar/src/network.rs @@ -321,7 +321,7 @@ impl Network { } impl BarWidget for Network { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.show_total_data_transmitted { for output in self.total_data_transmitted() { Frame::none() diff --git a/komorebi-bar/src/storage.rs b/komorebi-bar/src/storage.rs index 3622e6a8..9dc60032 100644 --- a/komorebi-bar/src/storage.rs +++ b/komorebi-bar/src/storage.rs @@ -80,7 +80,7 @@ impl Storage { } impl BarWidget for Storage { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let font_id = ctx .style() diff --git a/komorebi-bar/src/time.rs b/komorebi-bar/src/time.rs index aeafcce9..8cee8357 100644 --- a/komorebi-bar/src/time.rs +++ b/komorebi-bar/src/time.rs @@ -81,7 +81,7 @@ impl Time { } impl BarWidget for Time { - fn render(&mut self, ctx: &Context, ui: &mut Ui, config: RenderConfig) { + fn render(&mut self, ctx: &Context, ui: &mut Ui, _config: RenderConfig) { if self.enable { let mut output = self.output(); if !output.is_empty() { diff --git a/komorebi-bar/src/widget.rs b/komorebi-bar/src/widget.rs index 8f188ad1..34fdbda2 100644 --- a/komorebi-bar/src/widget.rs +++ b/komorebi-bar/src/widget.rs @@ -31,12 +31,12 @@ pub trait BarWidget { #[derive(Clone)] pub struct RenderConfig { /// Sets how widgets are grouped - group: i32, + _group: i32, } impl RenderConfig { - pub fn from(config: Arc) -> Self { - Self { group: 1 } + pub fn from(_config: Arc) -> Self { + Self { _group: 1 } } }