Skip to content

Commit

Permalink
Update git2 to compile with latest rustc nightly (#712)
Browse files Browse the repository at this point in the history
This works around the regression in rust-lang/rust#85574
  • Loading branch information
staktrace authored May 24, 2021
1 parent 0a64419 commit e16e16a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit e16e16a

Please sign in to comment.