Skip to content

Commit 712987e

Browse files
fidenciogkurz
authored andcommitted
agent: Fix format issues
In the previous commit we've added some code that broke `cargo fmt -- --check` without even noticing, as the code didn't go through the CI process (due to it being a security advisory). Signed-off-by: Fabiano Fidêncio <[email protected]> (cherry picked from commit bfc54d9) Signed-off-by: Greg Kurz <[email protected]>
1 parent 5ee8242 commit 712987e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/agent/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,15 @@ fn attestation_binaries_available(logger: &Logger, procs: &GuestComponentsProcs)
483483
_ => vec![],
484484
};
485485
for binary in binaries.iter() {
486-
let exists = Path::new(binary).try_exists().unwrap_or_else(|error| {
487-
match error.kind() {
486+
let exists = Path::new(binary)
487+
.try_exists()
488+
.unwrap_or_else(|error| match error.kind() {
488489
ErrorKind::NotFound => {
489490
warn!(logger, "{} not found", binary);
490491
false
491-
},
492-
_ => panic!("Path existence check failed for '{}': {}", binary, error)
493-
}
494-
});
492+
}
493+
_ => panic!("Path existence check failed for '{}': {}", binary, error),
494+
});
495495

496496
if !exists {
497497
return false;

0 commit comments

Comments
 (0)