Skip to content

Commit

Permalink
Drop braces from fuzz closure
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 11, 2023
1 parent cfc480b commit 53167c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/parse_token_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 53167c1

Please sign in to comment.