Skip to content

Commit 0635e38

Browse files
committed
fix: suppress unused_unsafe in context! macro expansion (edition 2024)
1 parent c7648e8 commit 0635e38

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

imageflow_abi/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,11 @@ macro_rules! context {
316316
eprintln!("{:?}", bt);
317317
::std::process::abort();
318318
}
319-
(unsafe { &mut *$ptr })
319+
{
320+
#[allow(unused_unsafe)]
321+
let r = unsafe { &mut *$ptr };
322+
r
323+
}
320324
}};
321325
}
322326

0 commit comments

Comments
 (0)