Skip to content

Commit

Permalink
Fix two minor clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jul 31, 2024
1 parent 89aacb7 commit ecf9363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down
7 changes: 3 additions & 4 deletions lib/src/imgstorage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit ecf9363

Please sign in to comment.