From f32f083c81a5034530ac33ad2bc460dd234186a5 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 4 May 2025 20:43:32 -0400 Subject: [Rust] More cleanup regarding `BnString` - Removed `to_string` shortcut from `BnString`. - Misc formatting --- plugins/dwarf/dwarf_import/src/functions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/dwarf/dwarf_import/src/functions.rs') diff --git a/plugins/dwarf/dwarf_import/src/functions.rs b/plugins/dwarf/dwarf_import/src/functions.rs index 6400ea84..6277c6b5 100644 --- a/plugins/dwarf/dwarf_import/src/functions.rs +++ b/plugins/dwarf/dwarf_import/src/functions.rs @@ -117,7 +117,7 @@ pub(crate) fn parse_function_entry( if let Ok(demangled) = sym.demangle(demangle_options) { let cleaned = abi_regex.replace_all(&demangled, ""); let simplified = simplify_str_to_str(&cleaned); - full_name = Some(simplified.to_string()); + full_name = Some(simplified.to_string_lossy().to_string()); } } } -- cgit v1.3.1