mirror of
https://github.com/gitui-org/gitui.git
synced 2026-10-12 02:14:16 +00:00
clippy fix
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user