We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4753c3 commit 69a7e65Copy full SHA for 69a7e65
crates/shim/src/cgroup.rs
@@ -201,7 +201,7 @@ pub fn get_cgroups_v2_path_by_pid(pid: u32) -> Result<PathBuf> {
201
let content = content.lines().next().unwrap_or("");
202
203
let Ok(path) = parse_cgroups_v2_path(content)?.canonicalize() else {
204
- return Err(Error::Other(format!("cgroup path not found")));
+ return Err(Error::Other("cgroup path not found".to_string()));
205
};
206
Ok(path)
207
}
0 commit comments