Skip to content

Commit 12fe44d

Browse files
committed
Misc formatting changes
1 parent 8817d93 commit 12fe44d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

rust/binaryninjacore-sys/build.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ fn main() {
6363
// Make a symlink "libbinaryninjacore.so" pointing to "libbinaryninjacore.so.1"
6464
if symlink_target.exists() && symlink_source.symlink_metadata().is_err() {
6565
use std::os::unix::fs;
66-
fs::symlink(
67-
symlink_target,
68-
symlink_source,
69-
)
70-
.expect("failed to create required symlink");
66+
fs::symlink(symlink_target, symlink_source).expect("failed to create required symlink");
7167
}
7268
println!("cargo:rustc-link-search={}", out_dir);
7369
}

rust/src/disassembly.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl InstructionTextToken {
254254
kind,
255255
}
256256
}
257-
257+
258258
pub(crate) unsafe fn free_raw(raw: BNInstructionTextToken) {
259259
if !raw.text.is_null() {
260260
BNFreeString(raw.text);

rust/src/typeprinter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ impl From<TypeDefinitionLine> for BNTypeDefinitionLine {
594594
// NOTE: This is leaking tokens. Must free with `cb_free_lines`.
595595
tokens: Box::leak(tokens).as_mut_ptr(),
596596
// NOTE: This is leaking a ref to ty. Must free with `cb_free_lines`.
597-
type_: unsafe { BNNewTypeReference(value.ty.handle) },
597+
type_: unsafe { BNNewTypeReference(value.ty.handle) },
598598
// NOTE: This is leaking a ref to parent_type. Must free with `cb_free_lines`.
599599
parentType: value
600600
.parent_type

0 commit comments

Comments
 (0)