]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-3234.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue-3234.rs
1 macro_rules! fuzz_target {
2     (|$data:ident: &[u8]| $body:block) => {};
3 }
4
5 fuzz_target!(|data: &[u8]| {
6     if let Ok(app_img) = AppImage::parse(data) {
7         if let Ok(app_img) =
8             app_img.sign_for_secureboot(include_str!("../../test-data/signing-key"))
9         {
10             assert!(app_img.is_signed());
11             Gbl::from_app_image(app_img).to_bytes();
12         }
13     }
14 });