diff --git a/komorebi/src/animation.rs b/komorebi/src/animation.rs index 9db9fc09..e12720a6 100644 --- a/komorebi/src/animation.rs +++ b/komorebi/src/animation.rs @@ -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)] diff --git a/komorebi/src/animation_manager.rs b/komorebi/src/animation_manager.rs index f0df8d21..4d19899f 100644 --- a/komorebi/src/animation_manager.rs +++ b/komorebi/src/animation_manager.rs @@ -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 }