Skip to content

Commit 6899a12

Browse files
Fix formatting
1 parent cfc1ee0 commit 6899a12

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cortex-m-rt/examples/skip-data-init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Example demonstrating the skip-data-init feature
2-
//!
2+
//!
33
//! This feature is useful when using bootloaders (like RP2040's boot2) that:
44
//! 1. Copy all data from Flash to RAM
55
//! 2. Unmap the Flash from memory space
@@ -31,7 +31,7 @@ fn main() -> ! {
3131
unsafe {
3232
COUNTER += 1;
3333
}
34-
34+
3535
loop {
3636
cortex_m::asm::nop();
3737
}

cortex-m-rt/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,7 @@
514514
#![no_std]
515515

516516
#[cfg(all(feature = "skip-data-init", feature = "zero-init-ram"))]
517-
compile_error!(
518-
"features `skip-data-init` and `zero-init-ram` cannot be enabled at the same time"
519-
);
517+
compile_error!("features `skip-data-init` and `zero-init-ram` cannot be enabled at the same time");
520518

521519
extern crate cortex_m_rt_macros as macros;
522520

0 commit comments

Comments
 (0)