From 134ef734a493a9d960fd44311d8fbea003a41531 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Wed, 11 Sep 2024 21:30:34 +0200 Subject: [PATCH] clippy fix --- asyncgit/src/sync/logwalker.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asyncgit/src/sync/logwalker.rs b/asyncgit/src/sync/logwalker.rs index 99fe2f93..7f790a67 100644 --- a/asyncgit/src/sync/logwalker.rs +++ b/asyncgit/src/sync/logwalker.rs @@ -102,8 +102,7 @@ impl<'a> LogWalker<'a> { // fn visit(&mut self, c: Commit<'a>) { - if !self.visited.contains(&c.id()) { - self.visited.insert(c.id()); + if self.visited.insert(c.id()) { self.commits.push(TimeOrderedCommit(c)); } }