Skip to content

Commit 2d5cb2f

Browse files
committed
clippy
1 parent 21e55ca commit 2d5cb2f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

rtic-macros/src/codegen/module.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
use std::marker::PhantomData;
2-
31
use crate::syntax::{ast::App, Context};
42
use crate::{analyze::Analysis, codegen::bindings::interrupt_mod, codegen::util};
5-
use proc_macro::Span;
3+
64
use proc_macro2::TokenStream as TokenStream2;
75
use quote::quote;
86

@@ -215,15 +213,9 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 {
215213
.map(|(ident, task)| {
216214
// Copied mostly from software_tasks.rs
217215
let internal_spawn_ident = util::internal_task_ident(ident, "spawn");
218-
let context = &task.context;
219216
let attrs = &task.attrs;
220217
let cfgs = &task.cfgs;
221218
let inputs = &task.inputs;
222-
let lifetime = if task.is_bottom {
223-
quote!('static)
224-
} else {
225-
quote!('a)
226-
};
227219
let generics = if task.is_bottom {
228220
quote!()
229221
} else {

rtic-macros/src/syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use indexmap::{IndexMap, IndexSet};
77
use proc_macro2::TokenStream as TokenStream2;
88
use syn::Ident;
99

10-
use crate::syntax::ast::{App, SoftwareTask};
10+
use crate::syntax::ast::App;
1111

1212
mod accessors;
1313
pub mod analyze;

0 commit comments

Comments
 (0)