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

Commit 3c47201

Browse files
committed
Prefer .split_whitespace()
1 parent 3c4b7c8 commit 3c47201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn fix(
4242
.lines()
4343
.map(|part| {
4444
part.trim()
45-
.split(char::is_whitespace)
45+
.split_whitespace()
4646
.filter(|part| !part.trim().is_empty())
4747
.collect::<Vec<&str>>()
4848
.join(" ")

0 commit comments

Comments
 (0)