Skip to content

Commit

Permalink
Fix clippy::needless_return lints
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and cmyr committed Oct 3, 2024
1 parent 11af007 commit dce8b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion read-fonts/src/collections/int_set/bitset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl BitSet {
/// Insert a new page if it doesn't exist.
fn page_for_mut(&mut self, value: u32) -> Option<&mut BitPage> {
let major_value = Self::get_major_value(value);
return self.page_for_major_mut(major_value);
self.page_for_major_mut(major_value)
}

/// Return a mutable reference to the page with major value equal to `major_value`.
Expand Down
2 changes: 1 addition & 1 deletion read-fonts/src/collections/int_set/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl<T: Domain> IntSet<T> {
};

// If next is <= end then there is at least one value in the input range.
return next.to_u32() <= range.end().to_u32();
next.to_u32() <= range.end().to_u32()
}

/// Returns true if this set contains at least one element in 'other'.
Expand Down

0 comments on commit dce8b20

Please sign in to comment.