diff options
author | 2023-03-31 20:42:14 +0200 | |
---|---|---|
committer | 2023-03-31 20:42:14 +0200 | |
commit | 7f61392a63959ce260c1d7d05628feee4ffa07e8 (patch) | |
tree | 231184f0d91deae4307f55ea1d1416c547f00e40 /rtic-macros/src/syntax/parse/app.rs | |
parent | 064cf19265f72d7f01e0847c545e6250391a2172 (diff) | |
download | rtic-7f61392a63959ce260c1d7d05628feee4ffa07e8.tar.gz rtic-7f61392a63959ce260c1d7d05628feee4ffa07e8.tar.zst rtic-7f61392a63959ce260c1d7d05628feee4ffa07e8.zip |
Removed device from init context in preparation for its disapearanceremove-core-device-peripherals
Diffstat (limited to 'rtic-macros/src/syntax/parse/app.rs')
-rw-r--r-- | rtic-macros/src/syntax/parse/app.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/rtic-macros/src/syntax/parse/app.rs b/rtic-macros/src/syntax/parse/app.rs index e797f75e..2a5f8d86 100644 --- a/rtic-macros/src/syntax/parse/app.rs +++ b/rtic-macros/src/syntax/parse/app.rs @@ -5,7 +5,7 @@ use proc_macro2::TokenStream as TokenStream2; use syn::{ parse::{self, ParseStream, Parser}, spanned::Spanned, - Expr, ExprArray, Fields, ForeignItem, Ident, Item, LitBool, Path, Token, Visibility, + Expr, ExprArray, Fields, ForeignItem, Ident, Item, Path, Token, Visibility, }; use super::Input; @@ -23,7 +23,6 @@ impl AppArgs { (|input: ParseStream<'_>| -> parse::Result<Self> { let mut custom = Set::new(); let mut device = None; - let mut peripherals = true; let mut dispatchers = Dispatchers::new(); loop { @@ -58,17 +57,6 @@ impl AppArgs { } } - "peripherals" => { - if let Ok(p) = input.parse::<LitBool>() { - peripherals = p.value; - } else { - return Err(parse::Error::new( - ident.span(), - "unexpected argument value; this should be a boolean", - )); - } - } - "dispatchers" => { if let Ok(p) = input.parse::<ExprArray>() { for e in p.elems { @@ -133,7 +121,6 @@ impl AppArgs { Ok(AppArgs { device, - peripherals, dispatchers, }) }) |