Skip to content

Commit 134ef73

Browse files
committed
clippy fix
1 parent 0a5e2ef commit 134ef73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

asyncgit/src/sync/logwalker.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ impl<'a> LogWalker<'a> {
102102

103103
//
104104
fn visit(&mut self, c: Commit<'a>) {
105-
if !self.visited.contains(&c.id()) {
106-
self.visited.insert(c.id());
105+
if self.visited.insert(c.id()) {
107106
self.commits.push(TimeOrderedCommit(c));
108107
}
109108
}

0 commit comments

Comments
 (0)