From 9f210e973834700d14c6c0283ed750ed5b038e8b Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 9 May 2026 23:16:24 +0300 Subject: chore: enable clippy linting --- src/app/runtime.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/app/runtime.rs') diff --git a/src/app/runtime.rs b/src/app/runtime.rs index a4e93d3b..3c67c306 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -229,10 +229,11 @@ impl App { } pub(crate) fn start_git_status_refresh_if_due(&mut self, now: Instant) { - if !self - .git_refresh_deadline() - .is_some_and(|deadline| now >= deadline) - { + let Some(deadline) = self.git_refresh_deadline() else { + return; + }; + + if now < deadline { return; } -- cgit v1.2.3