Skip to content

Commit 4752a3c

Browse files
committed
cargo fmt
1 parent 45b852d commit 4752a3c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
#![no_main]
22
#![allow(unused_must_use)] // workaround for "error: unused `Result` that must be used"
33

4-
use libfuzzer_sys::fuzz_target;
54
use adblock::lists::{parse_filter, FilterFormat, ParseOptions};
5+
use libfuzzer_sys::fuzz_target;
66

77
fuzz_target!(|data: &[u8]| {
88
if let Ok(filter) = std::str::from_utf8(data) {
9-
parse_filter(filter, true, ParseOptions { format: FilterFormat::Hosts, ..Default::default() });
9+
parse_filter(
10+
filter,
11+
true,
12+
ParseOptions {
13+
format: FilterFormat::Hosts,
14+
..Default::default()
15+
},
16+
);
1017
}
1118
});

fuzz/fuzz_targets/parse_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![no_main]
22
#![allow(unused_must_use)] // workaround for "error: unused `Result` that must be used"
33

4-
use libfuzzer_sys::fuzz_target;
54
use adblock::request::Request;
5+
use libfuzzer_sys::fuzz_target;
66

77
fuzz_target!(|data: &[u8]| {
88
if let Ok(url) = std::str::from_utf8(data) {

0 commit comments

Comments
 (0)