Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
  • Loading branch information
ryanabx committed Aug 22, 2024
1 parent 4896692 commit 56405ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/settings_tray/clock_subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use iced::{
futures::SinkExt,
widget::{
column,
text::{Style},
text::Style,
},
Color, Command,
};
Expand All @@ -21,14 +21,14 @@ pub enum ClockMessage {

#[derive(Clone, Debug)]
pub struct Clock {
date: String,
_date: String,
time: String,
}

impl Clock {
pub fn new() -> Self {
Self {
date: "".to_string(),
_date: "".to_string(),
time: "".to_string(),
}
}
Expand All @@ -46,7 +46,7 @@ impl Clock {

pub fn view(&self) -> iced::Element<ClockMessage> {
iced::widget::container(column![iced::widget::text!("{}", self.time).style(
|theme| {
|_theme| {
Style {
color: Some(Color::WHITE),
}
Expand Down

0 comments on commit 56405ad

Please sign in to comment.