History

thanks clippy

Sebastian Thiel committed 5 years ago

Commit eb8ea221 parent 258a4941 file · +1 −1Browse files

Unified · Split

git-ref/src/transaction.rs+1−1
@@ -154,7 +154,7 @@ mod ext { · 153 unmodified lines
154154 // In any case, we don't want the following algorithms to try dereffing it and assume they deal with
155155 // broken refs gracefully.
156156 edit.deref = false;
157− if let Some(Target::Symbolic(referent)) = store.find_one_existing(edit.name.to_partial()).ok() {
157+ if let Ok(Target::Symbolic(referent)) = store.find_one_existing(edit.name.to_partial()) {
158158 new_edits.push(make_entry(
159159 eid,
160160 match &mut edit.change {