diff --git a/lib/src/image.rs b/lib/src/image.rs index bdda5e70..5fd84b4f 100644 --- a/lib/src/image.rs +++ b/lib/src/image.rs @@ -22,7 +22,7 @@ pub(crate) async fn list_entrypoint() -> Result<()> { for image in images { println!("{image}"); } - println!(""); + println!(); println!("# Logically bound images"); let mut listcmd = sysroot.imgstore.new_image_cmd()?; diff --git a/lib/src/imgstorage.rs b/lib/src/imgstorage.rs index e3b0cf33..705a8a99 100644 --- a/lib/src/imgstorage.rs +++ b/lib/src/imgstorage.rs @@ -126,10 +126,9 @@ impl Storage { } fn init_globals() -> Result<()> { - // Ensure our global storage alias dirs exist - for d in [STORAGE_ALIAS_DIR] { - std::fs::create_dir_all(d).with_context(|| format!("Creating {d}"))?; - } + // Ensure our global storage alias dir exists + std::fs::create_dir_all(STORAGE_ALIAS_DIR) + .with_context(|| format!("Creating {STORAGE_ALIAS_DIR}"))?; Ok(()) }