Skip to content

Commit 5d5a4e9

Browse files
Mingundralley
authored andcommitted
Run cargo fmt in fuzz project
1 parent 5be2d0e commit 5d5a4e9

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

fuzz/fuzz_targets/fuzz_chunked_reader.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ fuzz_target!(|data: &[u8]| {
2525
// is not legal, and any capacity `>= data.len()` degenerates to the
2626
// Cursor case already covered by `fuzz_target_1`, so a small range is
2727
// both sufficient and the most efficient use of fuzz budget.
28-
let Some((&cap_byte, xml)) = data.split_first() else { return };
28+
let Some((&cap_byte, xml)) = data.split_first() else {
29+
return;
30+
};
2931
let capacity = (cap_byte as usize).max(1);
3032

31-
let mut reader =
32-
Reader::from_reader(BufReader::with_capacity(capacity, Cursor::new(xml)));
33+
let mut reader = Reader::from_reader(BufReader::with_capacity(capacity, Cursor::new(xml)));
3334
let mut buf = Vec::new();
3435
loop {
3536
// Touch the event payload enough to exercise the borrowed-data

fuzz/fuzz_targets/fuzz_target_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use libfuzzer_sys::fuzz_target;
33
use std::hint::black_box;
44

5-
use quick_xml::{events::Event, reader::Reader, writer::Writer, XmlVersion};
5+
use quick_xml::{XmlVersion, events::Event, reader::Reader, writer::Writer};
66
use std::io::Cursor;
77

88
macro_rules! debug_format {

0 commit comments

Comments
 (0)