mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-25 02:41:13 +01: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);
|
||||
|
||||
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