mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-21 00:49:25 +01:00
ignore unused
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user