From 72248a601a9ea28ac696f186e2cbe4c2f128a133 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 29 Jun 2025 22:37:11 +0200 Subject: Update Rust nightly, stable. --- embassy-rp/src/flash.rs | 6 +++++- embassy-rp/src/relocate.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'embassy-rp') diff --git a/embassy-rp/src/flash.rs b/embassy-rp/src/flash.rs index ef1cd9212..8c809090e 100644 --- a/embassy-rp/src/flash.rs +++ b/embassy-rp/src/flash.rs @@ -482,7 +482,11 @@ mod ram_helpers { /// # Safety /// /// `boot2` must contain a valid 2nd stage boot loader which can be called to re-initialize XIP mode - unsafe fn flash_function_pointers_with_boot2(erase: bool, write: bool, boot2: &[u32; 64]) -> FlashFunctionPointers { + unsafe fn flash_function_pointers_with_boot2( + erase: bool, + write: bool, + boot2: &[u32; 64], + ) -> FlashFunctionPointers<'_> { let boot2_fn_ptr = (boot2 as *const u32 as *const u8).offset(1); let boot2_fn: unsafe extern "C" fn() -> () = core::mem::transmute(boot2_fn_ptr); FlashFunctionPointers { diff --git a/embassy-rp/src/relocate.rs b/embassy-rp/src/relocate.rs index 34487819f..6ff40ddd7 100644 --- a/embassy-rp/src/relocate.rs +++ b/embassy-rp/src/relocate.rs @@ -39,7 +39,7 @@ pub struct RelocatedProgram<'a, const PROGRAM_SIZE: usize> { } impl<'a, const PROGRAM_SIZE: usize> RelocatedProgram<'a, PROGRAM_SIZE> { - pub fn new_with_origin(program: &Program, origin: u8) -> RelocatedProgram { + pub fn new_with_origin(program: &Program, origin: u8) -> RelocatedProgram<'_, PROGRAM_SIZE> { RelocatedProgram { program, origin } } -- cgit