Skip to content

Commit bd93b8d

Browse files
committed
Adjust formatting
1 parent 44edb33 commit bd93b8d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

objdiff-core/src/arch/x86.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl Arch for ArchX86 {
306306
if name.starts_with('?') {
307307
#[cfg(target_os = "windows")]
308308
{
309-
use std::ffi::{CString, CStr};
309+
use std::ffi::{CStr, CString};
310310
use windows_sys::Win32::System::Diagnostics::Debug::UnDecorateSymbolName;
311311

312312
let cstr = CString::new(name).ok()?;
@@ -320,10 +320,8 @@ impl Arch for ArchX86 {
320320
0, // UNDNAME_COMPLETE
321321
);
322322
if len > 0 {
323-
let result = CStr::from_ptr(buffer.as_ptr() as *const i8)
324-
.to_str()
325-
.ok()?
326-
.to_string();
323+
let result =
324+
CStr::from_ptr(buffer.as_ptr() as *const i8).to_str().ok()?.to_string();
327325
return Some(result);
328326
}
329327
}

0 commit comments

Comments
 (0)