Remove unnecessary braces.

This commit is contained in:
Sergio Benitez 2023-08-14 14:16:56 -04:00
parent 5606b8e693
commit ddeac5ddcf
2 changed files with 4 additions and 4 deletions

View File

@ -202,16 +202,16 @@ fn fuzz((route_a, route_b, req): TestData<'_>) {
} }
#[cfg(all(not(honggfuzz), not(afl)))] #[cfg(all(not(honggfuzz), not(afl)))]
libfuzzer_sys::fuzz_target!(|data: TestData| { fuzz(data) }); libfuzzer_sys::fuzz_target!(|data: TestData| fuzz(data));
#[cfg(honggbuzz)] #[cfg(honggbuzz)]
fn main() { fn main() {
loop { loop {
honggfuzz::fuzz!(|data: TestData| { fuzz(data) }); honggfuzz::fuzz!(|data: TestData| fuzz(data));
} }
} }
#[cfg(afl)] #[cfg(afl)]
fn main() { fn main() {
afl::fuzz!(|data: TestData| { fuzz(data) }); afl::fuzz!(|data: TestData| fuzz(data));
} }

View File

@ -20,4 +20,4 @@ fn fuzz(data: &str) {
} }
} }
fuzz_target!(|data: &str| { fuzz(data) }); fuzz_target!(|data: &str| fuzz(data));