diff options
Diffstat (limited to 'vendor/gix/src/revision/spec')
-rw-r--r-- | vendor/gix/src/revision/spec/parse/delegate/navigate.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/gix/src/revision/spec/parse/delegate/navigate.rs b/vendor/gix/src/revision/spec/parse/delegate/navigate.rs index 882c2835c..f6e085368 100644 --- a/vendor/gix/src/revision/spec/parse/delegate/navigate.rs +++ b/vendor/gix/src/revision/spec/parse/delegate/navigate.rs @@ -239,8 +239,7 @@ impl<'repo> delegate::Navigate for Delegate<'repo> { r.id() .object() .ok() - .map(|obj| obj.kind == gix_object::Kind::Commit) - .unwrap_or(false) + .map_or(false, |obj| obj.kind == gix_object::Kind::Commit) }) .filter_map(|r| r.detach().peeled), ) |