about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-05 14:15:52 +0530
committerGitHub <noreply@github.com>2022-09-05 14:15:52 +0530
commite4534fe6fef5452a5f2fd42927c933e06d8ec1b8 (patch)
treef1695ecd78fcb40279826a43c2f61f2a07da2298 /library/std/src/sys
parentd18dc3d2ab0e63be6ce00142d8cdced48447782c (diff)
parent6f4726541e56ae02a7e31cc42d1d14df81848c58 (diff)
downloadrust-e4534fe6fef5452a5f2fd42927c933e06d8ec1b8.tar.gz
rust-e4534fe6fef5452a5f2fd42927c933e06d8ec1b8.zip
Rollup merge of #101391 - matthiaskrgr:perf0309, r=oli-obk
more clippy::perf fixes
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/unix/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/thread.rs b/library/std/src/sys/unix/thread.rs
index 7db3065dee0..56bb71b5dcb 100644
--- a/library/std/src/sys/unix/thread.rs
+++ b/library/std/src/sys/unix/thread.rs
@@ -429,7 +429,7 @@ mod cgroups {
                         Some(b"") => Cgroup::V2,
                         Some(controllers)
                             if from_utf8(controllers)
-                                .is_ok_and(|c| c.split(",").any(|c| c == "cpu")) =>
+                                .is_ok_and(|c| c.split(',').any(|c| c == "cpu")) =>
                         {
                             Cgroup::V1
                         }