clippy fix

This commit is contained in:
extrawurst 2024-09-11 21:30:34 +02:00
parent 0a5e2ef1ed
commit 134ef734a4

View File

@ -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));
}
}