Skip to content

Commit b24ea3b

Browse files
committed
Update git2 to compile with latest rustc nightly
This works around the regression in rust-lang/rust#85574
1 parent 0a64419 commit b24ea3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/attr.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ impl PartialEq for AttrValue<'_> {
7676
| (Self::False, AttrValue::False)
7777
| (Self::Unspecified, AttrValue::Unspecified) => true,
7878
(AttrValue::String(string), AttrValue::Bytes(bytes))
79-
| (Self::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes,
80-
(Self::String(left), AttrValue::String(right)) => left == right,
81-
(Self::Bytes(left), AttrValue::Bytes(right)) => left == right,
79+
| (AttrValue::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes,
80+
(AttrValue::String(left), AttrValue::String(right)) => left == right,
81+
(AttrValue::Bytes(left), AttrValue::Bytes(right)) => left == right,
8282
_ => false,
8383
}
8484
}

0 commit comments

Comments
 (0)