aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/src/lib.rs
diff options
context:
space:
mode:
authormaor1993 <[email protected]>2025-10-07 15:05:09 +0300
committerGitHub <[email protected]>2025-10-07 15:05:09 +0300
commit04a36e9f62385fb4338908de66045f36fec664ea (patch)
tree714fcc21114946e33b2be8eb6037bdc3dd9bb596 /embassy-boot/src/lib.rs
parentcd91fe3b30dbb3d5b3c9c7d9e7cb151d721fb8d5 (diff)
parent07016a4ffbe0b0ea689b83a6ddf19ab1b6a9a79a (diff)
Merge branch 'embassy-rs:main' into main
Diffstat (limited to 'embassy-boot/src/lib.rs')
-rw-r--r--embassy-boot/src/lib.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/embassy-boot/src/lib.rs b/embassy-boot/src/lib.rs
index e2c4cf771..7dc811f66 100644
--- a/embassy-boot/src/lib.rs
+++ b/embassy-boot/src/lib.rs
@@ -1,5 +1,6 @@
1#![no_std] 1#![no_std]
2#![allow(async_fn_in_trait)] 2#![allow(async_fn_in_trait)]
3#![allow(unsafe_op_in_unsafe_fn)]
3#![warn(missing_docs)] 4#![warn(missing_docs)]
4#![doc = include_str!("../README.md")] 5#![doc = include_str!("../README.md")]
5mod fmt; 6mod fmt;
@@ -341,11 +342,13 @@ mod tests {
341 &mut aligned, 342 &mut aligned,
342 ); 343 );
343 344
344 assert!(block_on(updater.verify_and_mark_updated( 345 assert!(
345 &public_key.to_bytes(), 346 block_on(updater.verify_and_mark_updated(
346 &signature.to_bytes(), 347 &public_key.to_bytes(),
347 firmware_len as u32, 348 &signature.to_bytes(),
348 )) 349 firmware_len as u32,
349 .is_ok()); 350 ))
351 .is_ok()
352 );
350 } 353 }
351} 354}