mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-08 05:55:09 +02:00
refactor: apply clippy fixes
This commit is contained in:
@@ -440,7 +440,7 @@ impl Animation {
|
|||||||
|
|
||||||
let latest_cancel_idx = ANIMATION_MANAGER.lock().end_cancel(self.hwnd);
|
let latest_cancel_idx = ANIMATION_MANAGER.lock().end_cancel(self.hwnd);
|
||||||
|
|
||||||
return latest_cancel_idx == cancel_idx;
|
latest_cancel_idx == cancel_idx
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::cast_possible_truncation)]
|
#[allow(clippy::cast_possible_truncation)]
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ impl AnimationManager {
|
|||||||
let cancelled_count = animation_state.cancelled_count;
|
let cancelled_count = animation_state.cancelled_count;
|
||||||
animation_state.cancelled_count -= 1;
|
animation_state.cancelled_count -= 1;
|
||||||
|
|
||||||
return cancelled_count;
|
cancelled_count
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user