diff options
Diffstat (limited to 'rtic-macros/src/codegen/local_resources.rs')
| -rw-r--r-- | rtic-macros/src/codegen/local_resources.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rtic-macros/src/codegen/local_resources.rs b/rtic-macros/src/codegen/local_resources.rs index e6d1553..c73ad56 100644 --- a/rtic-macros/src/codegen/local_resources.rs +++ b/rtic-macros/src/codegen/local_resources.rs @@ -19,7 +19,10 @@ pub fn codegen(app: &App, _analysis: &Analysis) -> TokenStream2 { // late resources in `util::link_section_uninit` // unless user specifies custom link section - let section = if attrs.iter().any(|attr| attr.path.is_ident("link_section")) { + let section = if attrs + .iter() + .any(|attr| attr.path().is_ident("link_section")) + { None } else { Some(util::link_section_uninit()) |
