chore(clippy): mouse_area, controller & more

Fixes lints for:
* src/operation/controller.rs
* src/mouse_area.rs
* src/mounter/mod.rs
This commit is contained in:
Josh Megnauth 2025-01-19 01:05:02 -05:00 committed by Jeremy Soller
parent df2d01e9ba
commit 6a6a494012
6 changed files with 63 additions and 49 deletions

View file

@ -22,8 +22,8 @@ pub struct Controller {
inner: Arc<ControllerInner>,
}
impl Controller {
pub fn new() -> Self {
impl Default for Controller {
fn default() -> Self {
Self {
primary: true,
inner: Arc::new(ControllerInner {
@ -33,7 +33,9 @@ impl Controller {
}),
}
}
}
impl Controller {
pub fn check(&self) -> Result<(), String> {
let mut state = self.inner.state.lock().unwrap();
loop {