Skip to content

Commit 4ecb69e

Browse files
author
Robert Bastian
committed
fix
1 parent eee1d47 commit 4ecb69e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/sys/pal/unix/thread.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,6 @@ mod cgroups {
521521
//! * paths containing control characters or spaces, since those would be escaped in procfs
522522
//! output and we don't unescape
523523
524-
use str::from_utf8;
525-
526524
use crate::borrow::Cow;
527525
use crate::ffi::OsString;
528526
use crate::fs::{File, exists};
@@ -557,7 +555,7 @@ mod cgroups {
557555
let version = match fields.nth(1) {
558556
Some(b"") => Cgroup::V2,
559557
Some(controllers)
560-
if from_utf8(controllers)
558+
if str::from_utf8(controllers)
561559
.is_ok_and(|c| c.split(',').any(|c| c == "cpu")) =>
562560
{
563561
Cgroup::V1

0 commit comments

Comments
 (0)