Skip to content

Commit

Permalink
codegen: Fix PartialOrd clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Aug 25, 2023
1 parent 7498349 commit 70f4f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/trait_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ fn generate_ord(
impl PartialOrd for {type_name} {{
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {{
{call}.partial_cmp(&0)
Some(self.cmp(other))
}}
}}
Expand Down

0 comments on commit 70f4f2e

Please sign in to comment.