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

Commit

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

0 comments on commit 3c47201

Please sign in to comment.