aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-06-11 19:00:52 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-06-11 19:00:52 +0200
commiteb6406da7e33e62c8c126b044d80fb70afb8c675 (patch)
tree2cb584575428edcf237903cdbb703e863b02519e
parent1be9d0067bec44356ab96f0cd6d8252b8145f4ad (diff)
downloadrtic-eb6406da7e33e62c8c126b044d80fb70afb8c675.tar.gz
rtic-eb6406da7e33e62c8c126b044d80fb70afb8c675.tar.zst
rtic-eb6406da7e33e62c8c126b044d80fb70afb8c675.zip
Fmt
-rw-r--r--examples/t-idle-main.rs3
-rw-r--r--macros/src/codegen/init.rs5
-rw-r--r--src/lib.rs1
3 files changed, 4 insertions, 5 deletions
diff --git a/examples/t-idle-main.rs b/examples/t-idle-main.rs
index d1bb1483..861bbf22 100644
--- a/examples/t-idle-main.rs
+++ b/examples/t-idle-main.rs
@@ -9,8 +9,7 @@ use panic_semihosting as _;
#[rtfm::app(device = lm3s6965)]
const APP: () = {
#[init]
- fn init(_: init::Context) {
- }
+ fn init(_: init::Context) {}
#[idle]
fn main(_: main::Context) -> ! {
diff --git a/macros/src/codegen/init.rs b/macros/src/codegen/init.rs
index 534b79b0..e28354af 100644
--- a/macros/src/codegen/init.rs
+++ b/macros/src/codegen/init.rs
@@ -108,8 +108,9 @@ pub fn codegen(
}
let locals_new = locals_new.iter();
- let call_init =
- Some(quote!(let late = crate::#name(#(#locals_new,)* #name::Context::new(core.into()));));
+ let call_init = Some(
+ quote!(let late = crate::#name(#(#locals_new,)* #name::Context::new(core.into()));),
+ );
root_init.push(module::codegen(Context::Init(core), needs_lt, app, extra));
diff --git a/src/lib.rs b/src/lib.rs
index 98dd6157..614ba853 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -164,7 +164,6 @@ pub trait Monotonic {
/// A marker trait that indicates that it is correct to use this type in multi-core context
pub trait MultiCore {}
-
/// Sets the given `interrupt` as pending
///
/// This is a convenience function around