Skip to content

Commit c4714ce

Browse files
committed
Apply clippy suggestion
1 parent 6e9b6a3 commit c4714ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl DiskImageBuilder {
206206
}
207207

208208
for k in internal_files {
209-
if let Some(_) = local_map.insert(k.0, k.1) {
209+
if local_map.insert(k.0, k.1).is_some() {
210210
return Err(anyhow::Error::msg(format!(
211211
"Attempted to overwrite internal file: {}",
212212
k.0

0 commit comments

Comments
 (0)