Review fixes

This commit is contained in:
Emil Fresk 2021-02-25 17:32:12 +01:00
parent 70ea278f86
commit 767d46e05b
4 changed files with 5 additions and 9 deletions

View file

@ -127,6 +127,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
#[doc(hidden)]
pub type #mangled_name = #ty;
/// This module holds the static implementation for `#name::now()`
#[allow(non_snake_case)]
pub mod #name {
/// Access the global `Monotonic` implementation, not that this will panic
@ -154,7 +155,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 {
let rt_err = util::rt_err_ident();
quote!(
/// Implementation details
/// The RTIC application module
pub mod #name {
/// Always include the device crate which contains the vector table
use #device as #rt_err;

View file

@ -53,13 +53,9 @@ pub fn codegen(
Context::Idle => {}
Context::HardwareTask(..) => {
// None for now.
}
Context::HardwareTask(_) => {}
Context::SoftwareTask(..) => {
// None for now.
}
Context::SoftwareTask(_) => {}
}
if ctxt.has_locals(app) {