Skip to content

Commit 69a7e65

Browse files
Mossakamxpv
authored andcommitted
cargo clippy
Signed-off-by: jiaxiao zhou <[email protected]>
1 parent f4753c3 commit 69a7e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/shim/src/cgroup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub fn get_cgroups_v2_path_by_pid(pid: u32) -> Result<PathBuf> {
201201
let content = content.lines().next().unwrap_or("");
202202

203203
let Ok(path) = parse_cgroups_v2_path(content)?.canonicalize() else {
204-
return Err(Error::Other(format!("cgroup path not found")));
204+
return Err(Error::Other("cgroup path not found".to_string()));
205205
};
206206
Ok(path)
207207
}

0 commit comments

Comments
 (0)