ignore unused

This commit is contained in:
Csaba
2024-11-07 00:09:43 +01:00
parent a5a7d6906c
commit 6a91dd46cd
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ impl Battery {
} }
impl BarWidget for 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 { if self.enable {
let output = self.output(); let output = self.output();
if !output.is_empty() { if !output.is_empty() {
+1 -1
View File
@@ -71,7 +71,7 @@ impl Cpu {
} }
impl BarWidget for 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 { if self.enable {
let output = self.output(); let output = self.output();
if !output.is_empty() { if !output.is_empty() {
+1 -1
View File
@@ -87,7 +87,7 @@ impl Date {
} }
impl BarWidget for 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 { if self.enable {
let mut output = self.output(); let mut output = self.output();
if !output.is_empty() { if !output.is_empty() {
+1 -1
View File
@@ -123,7 +123,7 @@ pub struct Komorebi {
} }
impl BarWidget for 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(); let mut komorebi_notification_state = self.komorebi_notification_state.borrow_mut();
if self.workspaces.enable { if self.workspaces.enable {
+1 -1
View File
@@ -79,7 +79,7 @@ impl Media {
} }
impl BarWidget for 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 { if self.enable {
let output = self.output(); let output = self.output();
if !output.is_empty() { if !output.is_empty() {
+1 -1
View File
@@ -74,7 +74,7 @@ impl Memory {
} }
impl BarWidget for 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 { if self.enable {
let output = self.output(); let output = self.output();
if !output.is_empty() { if !output.is_empty() {
+1 -1
View File
@@ -321,7 +321,7 @@ impl Network {
} }
impl BarWidget for 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 { if self.show_total_data_transmitted {
for output in self.total_data_transmitted() { for output in self.total_data_transmitted() {
Frame::none() Frame::none()
+1 -1
View File
@@ -80,7 +80,7 @@ impl Storage {
} }
impl BarWidget for 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 { if self.enable {
let font_id = ctx let font_id = ctx
.style() .style()
+1 -1
View File
@@ -81,7 +81,7 @@ impl Time {
} }
impl BarWidget for 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 { if self.enable {
let mut output = self.output(); let mut output = self.output();
if !output.is_empty() { if !output.is_empty() {
+3 -3
View File
@@ -31,12 +31,12 @@ pub trait BarWidget {
#[derive(Clone)] #[derive(Clone)]
pub struct RenderConfig { pub struct RenderConfig {
/// Sets how widgets are grouped /// Sets how widgets are grouped
group: i32, _group: i32,
} }
impl RenderConfig { impl RenderConfig {
pub fn from(config: Arc<KomobarConfig>) -> Self { pub fn from(_config: Arc<KomobarConfig>) -> Self {
Self { group: 1 } Self { _group: 1 }
} }
} }