diff options
author | 2020-07-21 01:29:57 +0200 | |
---|---|---|
committer | 2020-07-21 01:39:46 +0200 | |
commit | 05f19e7ffccd376fca5cbc80f37faee44aaafff2 (patch) | |
tree | 5ba487d23bf975d55c66a48b955c6b4288930e82 /cortex-m-rt/build.rs | |
parent | 282d64bf688c7cb76efe5394a7cf56275b2a919c (diff) | |
download | cortex-m-05f19e7ffccd376fca5cbc80f37faee44aaafff2.tar.gz cortex-m-05f19e7ffccd376fca5cbc80f37faee44aaafff2.tar.zst cortex-m-05f19e7ffccd376fca5cbc80f37faee44aaafff2.zip |
Run rustfmt to make CI happier
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
Diffstat (limited to 'cortex-m-rt/build.rs')
-rw-r--r-- | cortex-m-rt/build.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cortex-m-rt/build.rs b/cortex-m-rt/build.rs index 87f000a..67cdfab 100644 --- a/cortex-m-rt/build.rs +++ b/cortex-m-rt/build.rs @@ -13,7 +13,8 @@ fn main() { fs::copy( format!("bin/{}.a", target), out_dir.join("libcortex-m-rt.a"), - ).unwrap(); + ) + .unwrap(); println!("cargo:rustc-link-lib=static=cortex-m-rt"); } @@ -34,7 +35,8 @@ fn main() { /* Provides weak aliases (cf. PROVIDED) for device specific interrupt handlers */ /* This will usually be provided by a device crate generated using svd2rust (see `device.x`) */ INCLUDE device.x"# - ).unwrap(); + ) + .unwrap(); f } else { let mut f = File::create(out.join("link.x")).unwrap(); @@ -55,9 +57,9 @@ INCLUDE device.x"# println!("cargo:rustc-cfg=armv8m"); 240 } else { - // Non ARM target. We assume you're just testing the syntax. - // This value seems as soon as any - 240 + // Non ARM target. We assume you're just testing the syntax. + // This value seems as soon as any + 240 }; // checking the size of the interrupts portion of the vector table is sub-architecture dependent @@ -71,7 +73,8 @@ handlers."); "#, max_int_handlers * 4 + 0x40, max_int_handlers - ).unwrap(); + ) + .unwrap(); println!("cargo:rustc-link-search={}", out.display()); |