diff options
author | tummychow <tummychow@users.noreply.github.com> | 2018-02-16 13:49:01 -0800 |
---|---|---|
committer | tummychow <tummychow@users.noreply.github.com> | 2018-02-16 13:49:01 -0800 |
commit | 8d921bf88cb43d5d83f9655ad61bbcef060ca2ff (patch) | |
tree | 0fba8fa460245559fa1ccf3e32806fa8e9955665 | |
parent | 5af6e72a98f59519b4b56cc4712ff641a95b58ed (diff) |
use len on exact size iterator
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ fn working_stack<'repo>( let sig = repo.signature()?; for rev in revwalk { let commit = repo.find_commit(rev?)?; - if commit.parents().count() > 1 { + if commit.parents().len() > 1 { debug!(logger, "merge commit found"; "commit" => commit.id().to_string()); break; } |