From 53167c1e93c7bbc0d9cc9068478d991fa13a024a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 10 Aug 2023 19:19:47 -0700 Subject: [PATCH] Drop braces from fuzz closure https://github.com/rust-fuzz/libfuzzer/pull/105 --- fuzz/Cargo.toml | 2 +- fuzz/fuzz_targets/parse_token_stream.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index b2000e6e..8185bacc 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -11,7 +11,7 @@ cargo-fuzz = true [dependencies] afl = { version = "0.13", optional = true } honggfuzz = { version = "0.5", optional = true } -libfuzzer-sys = { version = "0.4", optional = true } +libfuzzer-sys = { version = "0.4.7", optional = true } proc-macro2 = { path = "..", default-features = false } [features] diff --git a/fuzz/fuzz_targets/parse_token_stream.rs b/fuzz/fuzz_targets/parse_token_stream.rs index b302d236..f0264fea 100644 --- a/fuzz/fuzz_targets/parse_token_stream.rs +++ b/fuzz/fuzz_targets/parse_token_stream.rs @@ -43,7 +43,7 @@ fn main() { } #[cfg(feature = "libfuzzer")] -libfuzzer_sys::fuzz_target!(|bytes: &[u8]| { do_fuzz(bytes) }); +libfuzzer_sys::fuzz_target!(|bytes: &[u8]| do_fuzz(bytes)); #[cfg(feature = "afl")] fn main() {