Skip to content

Commit 3d5a0fe

Browse files
authored
examples: please clippy (#35)
warning: this expression creates a reference which is immediately dereferenced by the compiler --> examples/macho_print_checksec_results.rs:27:25 | 27 | match Object::parse(&bytes).unwrap() { | ^^^^^^ help: change this to: `bytes` |
1 parent 81287e2 commit 3d5a0fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/macho_print_checksec_results.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() {
2424
}
2525

2626
fn parse(bytes: &[u8]) {
27-
match Object::parse(&bytes).unwrap() {
27+
match Object::parse(bytes).unwrap() {
2828
Object::Mach(mach) => match mach {
2929
Mach::Binary(macho) => {
3030
println!("{:#?}", CheckSecResults::parse(&macho));

0 commit comments

Comments
 (0)