We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eca6331 commit 0e599a6Copy full SHA for 0e599a6
library/std/src/sys/pal/unix/thread.rs
@@ -519,8 +519,6 @@ mod cgroups {
519
//! * paths containing control characters or spaces, since those would be escaped in procfs
520
//! output and we don't unescape
521
522
- use str::from_utf8;
523
-
524
use crate::borrow::Cow;
525
use crate::ffi::OsString;
526
use crate::fs::{File, exists};
@@ -555,7 +553,7 @@ mod cgroups {
555
553
let version = match fields.nth(1) {
556
554
Some(b"") => Cgroup::V2,
557
Some(controllers)
558
- if from_utf8(controllers)
+ if str::from_utf8(controllers)
559
.is_ok_and(|c| c.split(',').any(|c| c == "cpu")) =>
560
{
561
Cgroup::V1
0 commit comments