Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy::needless_return lints #1174

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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