Skip to content

Commit 87d5124

Browse files
authored
Merge pull request #863 from jannic/silence-warning-rust-1.82.0
Fix warning with rust 1.82.0
2 parents ca4d23a + b871f02 commit 87d5124

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

rp-binary-info/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ extern "C" {
106106
#[link_section = ".boot_info"]
107107
#[cfg(feature = "binary-info")]
108108
#[used]
109+
#[allow(unused_unsafe)] // addr_of! is safe since rust 1.82.0
109110
pub static PICOTOOL_HEADER: Header = unsafe {
110111
Header::new(
111112
core::ptr::addr_of!(__bi_entries_start),

rp235x-hal-examples/src/bin/block_loop.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ extern "C" {
3737
/// Tell the Boot ROM about our application
3838
#[link_section = ".start_block"]
3939
#[used]
40+
#[allow(unused_unsafe)] // addr_of! is safe since rust 1.82.0
4041
pub static START_IMAGE_DEF: hal::block::ImageDef =
4142
hal::block::ImageDef::secure_exe().with_offset(unsafe { core::ptr::addr_of!(start_to_end) });
4243

4344
/// A second Block, and the end of the program in flash
4445
#[link_section = ".end_block"]
4546
#[used]
47+
#[allow(unused_unsafe)] // addr_of! is safe since rust 1.82.0
4648
pub static END_IMAGE_DEF: hal::block::Block<1> =
4749
// Put a placeholder item in the block.
4850
hal::block::Block::new([hal::block::item_ignored()])

0 commit comments

Comments
 (0)