From b24ea3bb519fe28f06f5a0d5b68cdc21abab7606 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Sat, 22 May 2021 07:55:04 -0400 Subject: [PATCH] Update git2 to compile with latest rustc nightly This works around the regression in https://github.com/rust-lang/rust/issues/85574 --- src/attr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/attr.rs b/src/attr.rs index 1e689d98ca..33b1d2d4af 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -76,9 +76,9 @@ impl PartialEq for AttrValue<'_> { | (Self::False, AttrValue::False) | (Self::Unspecified, AttrValue::Unspecified) => true, (AttrValue::String(string), AttrValue::Bytes(bytes)) - | (Self::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes, - (Self::String(left), AttrValue::String(right)) => left == right, - (Self::Bytes(left), AttrValue::Bytes(right)) => left == right, + | (AttrValue::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes, + (AttrValue::String(left), AttrValue::String(right)) => left == right, + (AttrValue::Bytes(left), AttrValue::Bytes(right)) => left == right, _ => false, } }