Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Oct 17, 2023
1 parent cf68ac0 commit 007ed32
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions wicketd/src/update_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1654,15 +1654,14 @@ impl UpdateContext {
.map_err(|error| {
UpdateTerminalError::FailedFindingSignedRotImage { error }
})?;
let archive =
RawHubrisArchive::from_vec(image).map_err(|err| {
UpdateTerminalError::FailedFindingSignedRotImage {
error: anyhow::Error::new(err).context(format!(
"failed to read hubris archive for {:?}",
artifact.id
)),
}
})?;
let archive = RawHubrisArchive::from_vec(image).map_err(|err| {
UpdateTerminalError::FailedFindingSignedRotImage {
error: anyhow::Error::new(err).context(format!(
"failed to read hubris archive for {:?}",
artifact.id
)),
}
})?;
match archive.verify(&cmpa, &cfpa) {
Ok(()) => {
artifact_to_apply = Some(artifact.clone());
Expand Down

0 comments on commit 007ed32

Please sign in to comment.