aboutsummaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
Diffstat (limited to 'macros')
-rw-r--r--macros/Cargo.toml5
-rw-r--r--macros/src/codegen/module.rs4
-rw-r--r--macros/src/codegen/util.rs5
3 files changed, 5 insertions, 9 deletions
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
index bf8ff29..aa96d09 100644
--- a/macros/Cargo.toml
+++ b/macros/Cargo.toml
@@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
name = "cortex-m-rtic-macros"
readme = "../README.md"
repository = "https://github.com/rtic-rs/cortex-m-rtic"
-version = "0.6.0-alpha.3"
+version = "0.6.0-alpha.4"
[lib]
proc-macro = true
@@ -22,5 +22,4 @@ proc-macro2 = "1"
proc-macro-error = "1"
quote = "1"
syn = "1"
-# rtic-syntax = "0.5.0-alpha.2"
-rtic-syntax = { path = "../../rtic-syntax" }
+rtic-syntax = "0.5.0-alpha.3"
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs
index 2f6ec33..a3d3fab 100644
--- a/macros/src/codegen/module.rs
+++ b/macros/src/codegen/module.rs
@@ -157,11 +157,11 @@ pub fn codegen(
Context::HardwareTask(t) => {
&app.hardware_tasks[t].cfgs
// ...
- },
+ }
Context::SoftwareTask(t) => {
&app.software_tasks[t].cfgs
// ...
- },
+ }
_ => &v,
};
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index 92c7154..3e42eda 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -142,10 +142,7 @@ pub fn mark_internal_ident(ident: &Ident) -> Ident {
/// Mark an ident as internal
pub fn mark_internal_name(name: &str) -> Ident {
- Ident::new(
- &format!("__rtic_internal_{}", name),
- Span::call_site(),
- )
+ Ident::new(&format!("__rtic_internal_{}", name), Span::call_site())
}
fn link_section_index() -> usize {