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

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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 {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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()

View File

@@ -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()

View File

@@ -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() {

View File

@@ -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<KomobarConfig>) -> Self {
Self { group: 1 }
pub fn from(_config: Arc<KomobarConfig>) -> Self {
Self { _group: 1 }
}
}