mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 22:33:12 +01:00
refactor: apply clippy fixes
This commit is contained in:
1 parent
804b0380f7
commit
53e3526a3a
2 files changed
+2
-2
No files matched your search
@@ -440,7 +440,7 @@ impl Animation {
|
||||
|
||||
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)]
|
||||
|
||||
@@ -59,7 +59,7 @@ impl AnimationManager {
|
||||
let cancelled_count = animation_state.cancelled_count;
|
||||
animation_state.cancelled_count -= 1;
|
||||
|
||||
return cancelled_count;
|
||||
cancelled_count
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user