summaryrefslogtreecommitdiff
path: root/rust/src/binary_view
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-04 20:43:32 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commitf32f083c81a5034530ac33ad2bc460dd234186a5 (patch)
tree02e5799b595322b3a6967977ac69257eb023e882 /rust/src/binary_view
parente12dac56c123bcf39708cb381497753250eb1887 (diff)
[Rust] More cleanup regarding `BnString`
- Removed `to_string` shortcut from `BnString`. - Misc formatting
Diffstat (limited to 'rust/src/binary_view')
-rw-r--r--rust/src/binary_view/memory_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/binary_view/memory_map.rs b/rust/src/binary_view/memory_map.rs
index 3afe0a20..6b6d3d20 100644
--- a/rust/src/binary_view/memory_map.rs
+++ b/rust/src/binary_view/memory_map.rs
@@ -21,13 +21,13 @@ impl MemoryMap {
/// JSON string representation of the base [`MemoryMap`], consisting of unresolved auto and user segments.
pub fn base_description(&self) -> String {
let desc_raw = unsafe { BNGetBaseMemoryMapDescription(self.view.handle) };
- unsafe { BnString::from_raw(desc_raw) }.to_string()
+ unsafe { BnString::into_string(desc_raw) }
}
/// JSON string representation of the [`MemoryMap`].
pub fn description(&self) -> String {
let desc_raw = unsafe { BNGetMemoryMapDescription(self.view.handle) };
- unsafe { BnString::from_raw(desc_raw) }.to_string()
+ unsafe { BnString::into_string(desc_raw) }
}
// When enabled, the memory map will present a simplified, logical view that merges and abstracts virtual memory