Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko19907 committed Dec 29, 2023
1 parent 51fb58a commit 06d2ea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use winapi::{
WINDOWPLACEMENT
},
};
use winapi::um::winuser::{GetClassNameW, GetWindowTextW};
use winapi::um::winuser::GetClassNameW;
use crate::controller::{MAX_MOVE};


Expand Down
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 06d2ea4

Please sign in to comment.