Skip to content

Commit

Permalink
Merge pull request #26 from OSInside/clippy_fix
Browse files Browse the repository at this point in the history
Fixed clippy warning
  • Loading branch information
schaefi authored Oct 28, 2023
2 parents 48c5ac4 + db63d20 commit 7d767a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake-ctl/src/firecracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ pub async fn pull_component_image(
file: Cow::Borrowed(&kernel_file),
}
);
if initrd_uri.is_some() {
if let Some(initrd_uri) = initrd_uri {
download_files.push(
Component {
uri: initrd_uri.unwrap().to_string(),
uri: initrd_uri.to_string(),
file: Cow::Borrowed(&initrd_file),
}
);
Expand Down

0 comments on commit 7d767a1

Please sign in to comment.