We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44edb33 commit bd93b8dCopy full SHA for bd93b8d
objdiff-core/src/arch/x86.rs
@@ -306,7 +306,7 @@ impl Arch for ArchX86 {
306
if name.starts_with('?') {
307
#[cfg(target_os = "windows")]
308
{
309
- use std::ffi::{CString, CStr};
+ use std::ffi::{CStr, CString};
310
use windows_sys::Win32::System::Diagnostics::Debug::UnDecorateSymbolName;
311
312
let cstr = CString::new(name).ok()?;
@@ -320,10 +320,8 @@ impl Arch for ArchX86 {
320
0, // UNDNAME_COMPLETE
321
);
322
if len > 0 {
323
- let result = CStr::from_ptr(buffer.as_ptr() as *const i8)
324
- .to_str()
325
- .ok()?
326
- .to_string();
+ let result =
+ CStr::from_ptr(buffer.as_ptr() as *const i8).to_str().ok()?.to_string();
327
return Some(result);
328
}
329
0 commit comments