Clippy code cleanup

This commit is contained in:
2026-08-15 13:22:59 +03:00
parent 9917702c4c
commit e676898135
22 changed files with 290 additions and 171 deletions
+8 -2
View File
@@ -58,7 +58,7 @@ fn main() -> iced::Result {
fn window_settings() -> window::Settings {
let mut settings = window::Settings{
position: Position::Centered,
min_size: Some(Size::new(700.0_f32.into(), 700.0_f32.into())),
min_size: Some(Size::new(700.0_f32, 700.0_f32)),
.. Default::default()
};
@@ -75,7 +75,7 @@ fn window_settings() -> window::Settings {
}
fn subscription(_state: &ScreenState) -> Subscription<RootMessage> {
keyboard::listen().map(|e| Keyboard(e))
keyboard::listen().map(Keyboard)
}
pub struct AppState {
@@ -87,6 +87,12 @@ pub struct AppState {
pub activity: HashMap<u32, Vec<(NaiveDate, u32)>>
}
impl Default for AppState {
fn default() -> Self {
Self::new()
}
}
impl AppState {
pub fn new() -> Self {