diff options
| author | Mark Rowe <mrowe@bdash.net.nz> | 2025-05-07 06:48:47 -0700 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-05-07 12:59:50 -0400 |
| commit | 9b8a5a4a6a39374acbcacd95819e9f02aacddafc (patch) | |
| tree | 5bb55559e7b47ae6442bd5f84990c8e0e8136b9f /plugins/svd/src | |
| parent | 86773015c984ff1be8df8ac9b25b7f6bd2f8cca5 (diff) | |
[Rust] Fix a pre-existing formatting issue CI is complaining about
Diffstat (limited to 'plugins/svd/src')
| -rw-r--r-- | plugins/svd/src/mapper.rs | 4 | ||||
| -rw-r--r-- | plugins/svd/src/settings.rs | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/plugins/svd/src/mapper.rs b/plugins/svd/src/mapper.rs index 0a476481..2d511615 100644 --- a/plugins/svd/src/mapper.rs +++ b/plugins/svd/src/mapper.rs @@ -174,7 +174,7 @@ impl DeviceMapper { &data_memory, Some(memory_info.segment_flags), ); - + if !added_memory { log::error!( "Failed to add memory for peripheral block! {} @ 0x{:x}", @@ -183,7 +183,7 @@ impl DeviceMapper { ); } } - + view.add_segment(memory_info.segment); view.add_section(memory_info.section); diff --git a/plugins/svd/src/settings.rs b/plugins/svd/src/settings.rs index 9b4a9e07..9621da64 100644 --- a/plugins/svd/src/settings.rs +++ b/plugins/svd/src/settings.rs @@ -30,9 +30,11 @@ impl LoadSettings { "default" : Self::ADD_BACKING_REGIONS_DEFAULT, "description" : "Whether to add backing regions. Backing regions allow you to write to the underlying memory of a view, but will take up space in the BNDB.", }); - bn_settings - .register_setting_json(Self::ADD_BACKING_REGIONS_SETTING, add_backing_region_props.to_string()); - + bn_settings.register_setting_json( + Self::ADD_BACKING_REGIONS_SETTING, + add_backing_region_props.to_string(), + ); + let add_bitfields_props = json!({ "title" : "Add Bitfields", "type" : "boolean", |
