Skip to content

Commit

Permalink
Clippy, one last time
Browse files Browse the repository at this point in the history
  • Loading branch information
ambiguousname committed Dec 12, 2024
1 parent 5d4000d commit b909ec4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tool/src/js/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -744,25 +744,25 @@ pub(super) struct ImportInfo<'info> {
}

/// Imports are only unique if they use a different type. We don't care about anything else.
impl<'info> Ord for ImportInfo<'info> {
impl Ord for ImportInfo<'_> {
fn cmp(&self, other: &Self) -> core::cmp::Ordering {
self.import_type.cmp(&other.import_type)
}
}

impl<'info> PartialOrd for ImportInfo<'info> {
impl PartialOrd for ImportInfo<'_> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.import_type.cmp(&other.import_type))
}
}

impl<'info> PartialEq for ImportInfo<'info> {
impl PartialEq for ImportInfo<'_> {
fn eq(&self, other: &Self) -> bool {
self.import_type.eq(&other.import_type)
}
}

impl<'info> Eq for ImportInfo<'info> {}
impl Eq for ImportInfo<'_> {}

// Helpers used in templates (Askama has restrictions on Rust syntax)

Expand Down

0 comments on commit b909ec4

Please sign in to comment.