Skip to content

Commit

Permalink
lint: clippy::redundant_closure_for_method_calls lint violation
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo authored and BurntSushi committed Nov 13, 2024
1 parent dee0d9a commit 65018f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3374,7 +3374,7 @@ pub struct Fields<'a> {
#[cfg(feature = "unicode")]
impl<'a> Fields<'a> {
fn new(bytes: &'a [u8]) -> Fields<'a> {
Fields { it: bytes.fields_with(|ch| ch.is_whitespace()) }
Fields { it: bytes.fields_with(char::is_whitespace) }
}
}

Expand Down

0 comments on commit 65018f6

Please sign in to comment.