diff options
author | 2022-07-27 20:25:34 +0200 | |
---|---|---|
committer | 2022-07-27 20:25:34 +0200 | |
commit | b4cfc4db84d304f1fd6384a173d089544340b3e1 (patch) | |
tree | 0592941b80f7ebf966a0b907bab182045cf2d06b /macros/src | |
parent | c6fd3cdd0a4e29c1e2d77c6e9107450a1bceed92 (diff) | |
download | rtic-b4cfc4db84d304f1fd6384a173d089544340b3e1.tar.gz rtic-b4cfc4db84d304f1fd6384a173d089544340b3e1.tar.zst rtic-b4cfc4db84d304f1fd6384a173d089544340b3e1.zip |
Fix missing formatting
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/codegen/local_resources.rs | 3 | ||||
-rw-r--r-- | macros/src/codegen/shared_resources.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/macros/src/codegen/local_resources.rs b/macros/src/codegen/local_resources.rs index 087967f2..6e7c1daa 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 010b27ae..08d77cc3 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()) }; |