We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a64419 commit b24ea3bCopy full SHA for b24ea3b
src/attr.rs
@@ -76,9 +76,9 @@ impl PartialEq for AttrValue<'_> {
76
| (Self::False, AttrValue::False)
77
| (Self::Unspecified, AttrValue::Unspecified) => true,
78
(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,
+ | (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,
82
_ => false,
83
}
84
0 commit comments