mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-02 17:34:18 +00:00
runtime-rs: rustfmt against lib.rs
It seemed some files was mssing run rustfmt. This commit do rustfmt for them. Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
@@ -37,8 +37,10 @@ fn get_uds_with_sid(short_id: &str, path: &str) -> Result<String> {
|
|||||||
return Ok(format!("unix://{}", p.display()));
|
return Ok(format!("unix://{}", p.display()));
|
||||||
}
|
}
|
||||||
|
|
||||||
let _ = fs::create_dir_all(kata_run_path.join(short_id))
|
let _ = fs::create_dir_all(kata_run_path.join(short_id)).context(format!(
|
||||||
.context(format!("failed to create directory {:?}", kata_run_path.join(short_id)));
|
"failed to create directory {:?}",
|
||||||
|
kata_run_path.join(short_id)
|
||||||
|
));
|
||||||
|
|
||||||
let target_ids: Vec<String> = fs::read_dir(&kata_run_path)?
|
let target_ids: Vec<String> = fs::read_dir(&kata_run_path)?
|
||||||
.filter_map(|e| {
|
.filter_map(|e| {
|
||||||
|
Reference in New Issue
Block a user