Skip to content

Commit

Permalink
Ord: Fix build when PartialOrd is not enabled (rustfmt)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson committed Feb 20, 2024
1 parent 7b9a95c commit 4b07ecb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/trait_handlers/ord/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ impl TraitHandler for OrdHandler {
}
}

fn supertraits(
#[allow(unused_variables)]
traits: &[Trait],
) -> Vec<proc_macro2::TokenStream> {
fn supertraits(#[allow(unused_variables)] traits: &[Trait]) -> Vec<proc_macro2::TokenStream> {
let mut supertraits = vec![];
supertraits.push(quote! {::core::cmp::Eq});

Expand Down

0 comments on commit 4b07ecb

Please sign in to comment.