Skip to content

Commit 3311a1a

Browse files
tottotoseanmonstar
authored andcommitted
refactor(header): resolve non-canonical PartialOrd implementation
1 parent ad6a186 commit 3311a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/header/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ impl Eq for HeaderValue {}
629629
impl PartialOrd for HeaderValue {
630630
#[inline]
631631
fn partial_cmp(&self, other: &HeaderValue) -> Option<cmp::Ordering> {
632-
self.inner.partial_cmp(&other.inner)
632+
Some(self.cmp(other))
633633
}
634634
}
635635

0 commit comments

Comments
 (0)