mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 14:25:18 +01:00
Documentation generation fixes
Test fixes
This commit is contained in:
parent
767d46e05b
commit
d351f55e1c
12 changed files with 114 additions and 96 deletions
|
|
@ -31,7 +31,7 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
None
|
||||
};
|
||||
let ty = &res.ty;
|
||||
let mangled_name = util::mangle_ident(&name);
|
||||
let mangled_name = util::mark_internal_ident(&name);
|
||||
|
||||
// let ownership = &analysis.ownerships[name];
|
||||
let r_prop = &res.properties;
|
||||
|
|
@ -112,6 +112,7 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
|
||||
let doc = format!("Resources `{}` has access to", ctxt.ident(app));
|
||||
let ident = util::resources_ident(ctxt, app);
|
||||
let ident = util::mark_internal_ident(&ident);
|
||||
let item = quote!(
|
||||
#[allow(non_snake_case)]
|
||||
#[doc = #doc]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue