Skip to content

Commit

Permalink
Fixed clippy warning
Browse files Browse the repository at this point in the history
call of unwrap after checking its variant with is_some()
  • Loading branch information
schaefi committed Oct 23, 2023
1 parent 3faf697 commit db63d20
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 db63d20

Please sign in to comment.