Skip to content

Commit 05f19e7

Browse files
committed
Run rustfmt to make CI happier
Signed-off-by: Daniel Egger <[email protected]>
1 parent 282d64b commit 05f19e7

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

cortex-m-rt/build.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ fn main() {
1313
fs::copy(
1414
format!("bin/{}.a", target),
1515
out_dir.join("libcortex-m-rt.a"),
16-
).unwrap();
16+
)
17+
.unwrap();
1718
println!("cargo:rustc-link-lib=static=cortex-m-rt");
1819
}
1920

@@ -34,7 +35,8 @@ fn main() {
3435
/* Provides weak aliases (cf. PROVIDED) for device specific interrupt handlers */
3536
/* This will usually be provided by a device crate generated using svd2rust (see `device.x`) */
3637
INCLUDE device.x"#
37-
).unwrap();
38+
)
39+
.unwrap();
3840
f
3941
} else {
4042
let mut f = File::create(out.join("link.x")).unwrap();
@@ -55,9 +57,9 @@ INCLUDE device.x"#
5557
println!("cargo:rustc-cfg=armv8m");
5658
240
5759
} else {
58-
// Non ARM target. We assume you're just testing the syntax.
59-
// This value seems as soon as any
60-
240
60+
// Non ARM target. We assume you're just testing the syntax.
61+
// This value seems as soon as any
62+
240
6163
};
6264

6365
// checking the size of the interrupts portion of the vector table is sub-architecture dependent
@@ -71,7 +73,8 @@ handlers.");
7173
"#,
7274
max_int_handlers * 4 + 0x40,
7375
max_int_handlers
74-
).unwrap();
76+
)
77+
.unwrap();
7578

7679
println!("cargo:rustc-link-search={}", out.display());
7780

cortex-m-rt/examples/data_overflow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ use core::ptr;
1313
use rt::entry;
1414

1515
// This large static array uses most of .rodata
16-
static RODATA: [u8; 48*1024] = [1u8; 48*1024];
16+
static RODATA: [u8; 48 * 1024] = [1u8; 48 * 1024];
1717

1818
// This large mutable array causes .data to use the rest of FLASH
1919
// without also overflowing RAM.
20-
static mut DATA: [u8; 16*1024] = [1u8; 16*1024];
20+
static mut DATA: [u8; 16 * 1024] = [1u8; 16 * 1024];
2121

2222
#[entry]
2323
fn main() -> ! {

cortex-m-rt/tests/compiletest.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ fn run_mode(mode: &'static str) {
88
config.mode = mode.parse().expect("Invalid mode");
99
config.src_base = PathBuf::from(format!("tests/{}", mode));
1010
// config.link_deps(); // Populate config.target_rustcflags with dependencies on the path
11-
config.target_rustcflags =
12-
Some("-L target/debug -L target/debug/deps -C panic=abort --cfg feature=\"device\"".to_owned());
11+
config.target_rustcflags = Some(
12+
"-L target/debug -L target/debug/deps -C panic=abort --cfg feature=\"device\"".to_owned(),
13+
);
1314
// config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464
1415

1516
compiletest::run_tests(&config);

0 commit comments

Comments
 (0)