Skip to content

Commit

Permalink
Add mandatory mut for get_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Sep 30, 2024
1 parent ed22e9b commit 3c69135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger_device_sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<T> NVMData<T> {
}

#[cfg(not(target_os = "nanos"))]
pub fn get_mut(&self) -> &mut T {
pub fn get_mut(&mut self) -> &mut T {
unsafe {
let pic_addr = self.get_addr();
&mut *pic_addr.cast()
Expand Down

0 comments on commit 3c69135

Please sign in to comment.