Skip to content

Commit

Permalink
Make clippy happy (partial_cmp vs cmp)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenichiwa committed Dec 20, 2023
1 parent 51bd2dc commit 3e8d80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion const_typed_builder_derive/src/info/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<'a> Field<'a> {

impl<'a> PartialOrd for Field<'a> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.index.partial_cmp(&other.index)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 3e8d80a

Please sign in to comment.