Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Jun 2, 2023
1 parent 6c3f16c commit 76fa4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trim_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl TrimMatchesMut for String {
/// ```
fn trim_end_matches_mut<F>(&mut self, cb: F)
where F: Fn(Self::MatchUnit) -> bool {
let alt = self.trim_end_matches(|c| cb(c));
let alt = self.trim_end_matches(cb);
self.truncate(alt.len());
}
}
Expand Down

0 comments on commit 76fa4d4

Please sign in to comment.