From 53e3526a3a53efabb57b11b3b72dd7739e3fb0ea Mon Sep 17 00:00:00 2001 From: thearturca Date: Tue, 23 Jul 2024 16:49:24 +0300 Subject: [PATCH] refactor: apply clippy fixes --- komorebi/src/animation.rs | 2 +- komorebi/src/animation_manager.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }