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:
parent
df2d01e9ba
commit
6a6a494012
6 changed files with 63 additions and 49 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue