Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
clippy: remove trim before split_whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 11, 2024
1 parent 3c47201 commit d09563e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ pub fn fix(
&s.trim()
.lines()
.map(|part| {
part.trim()
.split_whitespace()
part.split_whitespace()
.filter(|part| !part.trim().is_empty())
.collect::<Vec<&str>>()
.join(" ")
Expand Down

0 comments on commit d09563e

Please sign in to comment.