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