diff options
Diffstat (limited to 'vendor/gix-ref/src/transaction')
-rw-r--r-- | vendor/gix-ref/src/transaction/mod.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/vendor/gix-ref/src/transaction/mod.rs b/vendor/gix-ref/src/transaction/mod.rs index d13ff2e70..77ab7349d 100644 --- a/vendor/gix-ref/src/transaction/mod.rs +++ b/vendor/gix-ref/src/transaction/mod.rs @@ -96,19 +96,11 @@ impl Change { match self { // TODO: use or-patterns once MRV is larger than 1.52 (and this is supported) Change::Update { - expected: PreviousValue::MustExistAndMatch(previous), - .. - } - | Change::Update { - expected: PreviousValue::ExistingMustMatch(previous), - .. - } - | Change::Delete { - expected: PreviousValue::MustExistAndMatch(previous), + expected: PreviousValue::MustExistAndMatch(previous) | PreviousValue::ExistingMustMatch(previous), .. } | Change::Delete { - expected: PreviousValue::ExistingMustMatch(previous), + expected: PreviousValue::MustExistAndMatch(previous) | PreviousValue::ExistingMustMatch(previous), .. } => previous, _ => return None, |