diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-10 16:54:59 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-15 12:34:43 -0400 |
| commit | 2c7ac8726f30b4caa8a6a7c55a6c8aeba29916bb (patch) | |
| tree | 40b7ef6ca1c305de5a734bec9ac07ef6e0d267de /plugins/dwarf | |
| parent | 414bc8049d51828c0870b68b72ddd9e50bc1e700 (diff) | |
[Rust] Misc formatting
Diffstat (limited to 'plugins/dwarf')
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 14 | ||||
| -rw-r--r-- | plugins/dwarf/dwarf_import/src/functions.rs | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 9f4f8c03..44826e39 100644 --- a/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -397,11 +397,11 @@ impl DebugInfoBuilder { } else { x } - }, + } None => { // Anonymous variable, generate name format!("debug_var_{}", offset) - }, + } }; let Some(function_index) = fn_idx else { @@ -476,7 +476,7 @@ impl DebugInfoBuilder { }); offset + guessed_sp_adjustment.unwrap_or(0) - }, + } }; if adjusted_offset > 0 { @@ -589,7 +589,7 @@ impl DebugInfoBuilder { let return_type = match function.return_type { Some(return_type_id) => { Conf::new(self.get_type(return_type_id).unwrap().ty.clone(), 128) - }, + } _ => Conf::new(Type::void(), 0), }; @@ -669,11 +669,11 @@ impl DebugInfoBuilder { match existing_functions.len().cmp(&1) { Ordering::Greater => { warn!("Multiple existing functions at address {address:08x}. One or more functions at this address may have the wrong platform information. Please report this binary."); - }, + } Ordering::Equal => { func.platform = Some(existing_functions.get(0).platform()) - }, - Ordering::Less => {}, + } + Ordering::Less => {} } } } diff --git a/plugins/dwarf/dwarf_import/src/functions.rs b/plugins/dwarf/dwarf_import/src/functions.rs index 49e16274..5f7b0e42 100644 --- a/plugins/dwarf/dwarf_import/src/functions.rs +++ b/plugins/dwarf/dwarf_import/src/functions.rs @@ -71,7 +71,7 @@ fn get_parameters<R: ReaderType>( } else { result.push(None) } - }, + } constants::DW_TAG_unspecified_parameters => variable_arguments = true, _ => (), } |
