Skip to content

Commit 303a0b9

Browse files
committed
Allow unsafe with log-itm feature flag for examples
Whilst still allowing #![deny(unsafe_code)] in the examples themselves
1 parent 72a101c commit 303a0b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/utilities/logger.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(feature = "log-itm", allow(unsafe_code))]
2+
13
cfg_if::cfg_if! {
24
if #[cfg(any(feature = "log-itm"))] {
35
use panic_itm as _;

0 commit comments

Comments
 (0)