Clippy code cleanup
This commit is contained in:
+8
-2
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user