Skip to content

Commit 53167c1

Browse files
committed
Drop braces from fuzz closure
rust-fuzz/libfuzzer#105
1 parent cfc480b commit 53167c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fuzz/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cargo-fuzz = true
1111
[dependencies]
1212
afl = { version = "0.13", optional = true }
1313
honggfuzz = { version = "0.5", optional = true }
14-
libfuzzer-sys = { version = "0.4", optional = true }
14+
libfuzzer-sys = { version = "0.4.7", optional = true }
1515
proc-macro2 = { path = "..", default-features = false }
1616

1717
[features]

fuzz/fuzz_targets/parse_token_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn main() {
4343
}
4444

4545
#[cfg(feature = "libfuzzer")]
46-
libfuzzer_sys::fuzz_target!(|bytes: &[u8]| { do_fuzz(bytes) });
46+
libfuzzer_sys::fuzz_target!(|bytes: &[u8]| do_fuzz(bytes));
4747

4848
#[cfg(feature = "afl")]
4949
fn main() {

0 commit comments

Comments
 (0)