cargo clippy

Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
This commit is contained in:
jiaxiao zhou 2024-03-15 18:58:32 +00:00 committed by Maksym Pavlenko
parent f4753c3493
commit 69a7e651ea
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ pub fn get_cgroups_v2_path_by_pid(pid: u32) -> Result<PathBuf> {
let content = content.lines().next().unwrap_or("");
let Ok(path) = parse_cgroups_v2_path(content)?.canonicalize() else {
return Err(Error::Other(format!("cgroup path not found")));
return Err(Error::Other("cgroup path not found".to_string()));
};
Ok(path)
}