Skip to content

Commit ecf9363

Browse files
committed
Fix two minor clippy lints
Signed-off-by: Colin Walters <[email protected]>
1 parent 89aacb7 commit ecf9363

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/src/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub(crate) async fn list_entrypoint() -> Result<()> {
2222
for image in images {
2323
println!("{image}");
2424
}
25-
println!("");
25+
println!();
2626

2727
println!("# Logically bound images");
2828
let mut listcmd = sysroot.imgstore.new_image_cmd()?;

lib/src/imgstorage.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ impl Storage {
126126
}
127127

128128
fn init_globals() -> Result<()> {
129-
// Ensure our global storage alias dirs exist
130-
for d in [STORAGE_ALIAS_DIR] {
131-
std::fs::create_dir_all(d).with_context(|| format!("Creating {d}"))?;
132-
}
129+
// Ensure our global storage alias dir exists
130+
std::fs::create_dir_all(STORAGE_ALIAS_DIR)
131+
.with_context(|| format!("Creating {STORAGE_ALIAS_DIR}"))?;
133132
Ok(())
134133
}
135134

0 commit comments

Comments
 (0)