Skip to content

Commit 42e045e

Browse files
committed
more clippy::perf fixes
1 parent de5c180 commit 42e045e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/unix/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ mod cgroups {
429429
Some(b"") => Cgroup::V2,
430430
Some(controllers)
431431
if from_utf8(controllers)
432-
.is_ok_and(|c| c.split(",").any(|c| c == "cpu")) =>
432+
.is_ok_and(|c| c.split(',').any(|c| c == "cpu")) =>
433433
{
434434
Cgroup::V1
435435
}

0 commit comments

Comments
 (0)