summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortummychow <tummychow@users.noreply.github.com>2018-02-16 13:49:01 -0800
committertummychow <tummychow@users.noreply.github.com>2018-02-16 13:49:01 -0800
commit8d921bf88cb43d5d83f9655ad61bbcef060ca2ff (patch)
tree0fba8fa460245559fa1ccf3e32806fa8e9955665
parent5af6e72a98f59519b4b56cc4712ff641a95b58ed (diff)
use len on exact size iterator
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dd2b4ab..98b830d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;
}