mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Added back accidentally removed block
This commit is contained in:
parent
44f26fe90c
commit
8ab7be9871
2 changed files with 7 additions and 2 deletions
|
@ -63,6 +63,12 @@ pub fn codegen(
|
|||
}
|
||||
));
|
||||
|
||||
let name_late = format_ident!("{}LateResources", name);
|
||||
user_init_imports.push(quote!(
|
||||
#[allow(non_snake_case)]
|
||||
use super::#name_late;
|
||||
));
|
||||
|
||||
let mut locals_pat = None;
|
||||
let mut locals_new = None;
|
||||
if !init.locals.is_empty() {
|
||||
|
|
|
@ -35,8 +35,7 @@ mod tests;
|
|||
///
|
||||
/// The items allowed in the module block are specified below:
|
||||
///
|
||||
/// # 1. `#[resources]
|
||||
/// struct <resource-name>`
|
||||
/// # 1. `#[resources] struct <resource-name>`
|
||||
///
|
||||
/// This structure contains the declaration of all the resources used by the application. Each field
|
||||
/// in this structure corresponds to a different resource. Each resource may optionally be given an
|
||||
|
|
Loading…
Reference in a new issue