diff --git a/src/mover.rs b/src/mover.rs index c0d351b..e5c6e07 100644 --- a/src/mover.rs +++ b/src/mover.rs @@ -46,7 +46,7 @@ use winapi::{ WINDOWPLACEMENT }, }; -use winapi::um::winuser::{GetClassNameW, GetWindowTextW}; +use winapi::um::winuser::GetClassNameW; use crate::controller::{MAX_MOVE}; diff --git a/src/settings.rs b/src/settings.rs index ec07355..62d3a82 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -19,7 +19,7 @@ impl Settings { delay: 30000, // 30 seconds // TODO: Use Delays::ThirtySeconds perhaps or move this to seconds instead of milliseconds max_distance_x: 50, max_distance_y: 50, - } + }; } pub fn get_running(&self) -> bool { @@ -32,7 +32,7 @@ impl Settings { /// Returns the delay in milliseconds pub fn get_delay(&self) -> i32 { - return self.delay + return self.delay; } /// Sets the delay, in milliseconds