aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Górski <gabriel.gorski@volvocars.com>2022-07-27 20:25:34 +0200
committerGabriel Górski <gabriel.gorski@volvocars.com>2022-07-27 20:25:34 +0200
commitb4cfc4db84d304f1fd6384a173d089544340b3e1 (patch)
tree0592941b80f7ebf966a0b907bab182045cf2d06b
parentc6fd3cdd0a4e29c1e2d77c6e9107450a1bceed92 (diff)
Fix missing formatting
-rw-r--r--macros/src/codegen/local_resources.rs3
-rw-r--r--macros/src/codegen/shared_resources.rs3
2 files changed, 2 insertions, 4 deletions
diff --git a/macros/src/codegen/local_resources.rs b/macros/src/codegen/local_resources.rs
index 087967f..6e7c1da 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 010b27a..08d77cc 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())
};