Skip to content

Commit 90471b0

Browse files
committed
test(fuzz): Resolve deprecation
1 parent ce2275f commit 90471b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/toml_edit_fuzz/parse_document.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#![no_main]
22

3-
use toml_edit::Document;
3+
use toml_edit::DocumentMut;
44

55
libfuzzer_sys::fuzz_target!(|data| {
66
if let Ok(data) = std::str::from_utf8(data) {
77
println!("parsing: {data:?}");
8-
let doc = data.parse::<Document>();
8+
let doc = data.parse::<DocumentMut>();
99
if let Ok(doc) = doc {
1010
let toml = doc.to_string();
1111
println!("parsing: {toml:?}");
12-
let doc = toml.parse::<Document>();
12+
let doc = toml.parse::<DocumentMut>();
1313
assert!(
1414
doc.is_ok(),
1515
"Failed to parse `doc.to_string()`: {}\n```\n{}\n```",

0 commit comments

Comments
 (0)