mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
Match new rtic-syntax naming of shared and local
This commit is contained in:
parent
7155b55ac8
commit
03af9b1994
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> {
|
||||||
let mangled_name = util::static_shared_resource_ident(name);
|
let mangled_name = util::static_shared_resource_ident(name);
|
||||||
// If it's live
|
// If it's live
|
||||||
let cfgs = res.cfgs.clone();
|
let cfgs = res.cfgs.clone();
|
||||||
if analysis.shared_resource_locations.get(name).is_some() {
|
if analysis.shared_resources.get(name).is_some() {
|
||||||
stmts.push(quote!(
|
stmts.push(quote!(
|
||||||
// We include the cfgs
|
// We include the cfgs
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
|
@ -31,7 +31,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> {
|
||||||
let mangled_name = util::static_local_resource_ident(name);
|
let mangled_name = util::static_local_resource_ident(name);
|
||||||
// If it's live
|
// If it's live
|
||||||
let cfgs = res.cfgs.clone();
|
let cfgs = res.cfgs.clone();
|
||||||
if analysis.local_resource_locations.get(name).is_some() {
|
if analysis.local_resources.get(name).is_some() {
|
||||||
stmts.push(quote!(
|
stmts.push(quote!(
|
||||||
// We include the cfgs
|
// We include the cfgs
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
|
|
Loading…
Reference in a new issue