diff --git a/macros/src/codegen/local_resources.rs b/macros/src/codegen/local_resources.rs index 087967f2a4..6e7c1daa72 100644 --- a/macros/src/codegen/local_resources.rs +++ b/macros/src/codegen/local_resources.rs @@ -32,8 +32,7 @@ pub fn codegen( // unless user specifies custom link section let section = if attrs.iter().any(|attr| attr.path.is_ident("link_section")) { None - } - else { + } else { Some(util::link_section_uninit()) }; diff --git a/macros/src/codegen/shared_resources.rs b/macros/src/codegen/shared_resources.rs index 010b27aea0..08d77cc326 100644 --- a/macros/src/codegen/shared_resources.rs +++ b/macros/src/codegen/shared_resources.rs @@ -29,8 +29,7 @@ pub fn codegen( // unless user specifies custom link section let section = if attrs.iter().any(|attr| attr.path.is_ident("link_section")) { None - } - else { + } else { Some(util::link_section_uninit()) };