Skip to content

Commit b2bbaf7

Browse files
committed
[Rust] Fix clippy + rustfmt complaints
The clippy complaint was a real issue: the doc comment intended for the commented-out `unresolved_indirect_branches` was being interpreted as the start of the doc comment for the following function.
1 parent b26a85d commit b2bbaf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rust/src/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2371,8 +2371,8 @@ impl Function {
23712371
unsafe { BNHasUnresolvedIndirectBranches(self.handle) }
23722372
}
23732373

2374-
/// List of address of unresolved indirect branches
23752374
/*
2375+
/// List of address of unresolved indirect branches
23762376
pub fn unresolved_indirect_branches(&self) -> Array<Arch> {
23772377
let mut count = 0;
23782378
let result = unsafe { BNGetUnresolvedIndirectBranches(self.handle, &mut count) };

rust/tests/binary_view.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ fn test_binary_tags() {
106106
let view = binaryninja::load(out_dir.join("atox.obj")).expect("Failed to create view");
107107
let tag_ty = view.create_tag_type("Test", "");
108108
view.add_tag(0x0, &tag_ty, "t", false);
109-
view.tag_type_by_name("Test").expect("Failed to get tag type");
109+
view.tag_type_by_name("Test")
110+
.expect("Failed to get tag type");
110111
}
111112

112113
// These are the target files present in OUT_DIR

0 commit comments

Comments
 (0)