refactor: apply clippy fixes

This commit is contained in:
thearturca
2024-07-23 16:49:24 +03:00
parent 804b0380f7
commit 53e3526a3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)]
+1 -1
View File
@@ -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
} }