Skip to content

Commit

Permalink
Merge pull request #64 from epage/style
Browse files Browse the repository at this point in the history
style: Make clippy happy
  • Loading branch information
epage authored Oct 12, 2023
2 parents e9d8425 + 52ae231 commit 3b48310
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<B: crate::backend::HeapStr> Ord for KStringBase<B> {
impl<B: crate::backend::HeapStr> PartialOrd for KStringBase<B> {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.as_str().partial_cmp(other.as_str())
Some(self.cmp(other))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/string_cow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<'s, B: crate::backend::HeapStr> Ord for KStringCowBase<'s, B> {
impl<'s, B: crate::backend::HeapStr> PartialOrd for KStringCowBase<'s, B> {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.as_str().partial_cmp(other.as_str())
Some(self.cmp(other))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/string_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<'s> Ord for KStringRef<'s> {
impl<'s> PartialOrd for KStringRef<'s> {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.as_str().partial_cmp(other.as_str())
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 3b48310

Please sign in to comment.