We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2275f commit 90471b0Copy full SHA for 90471b0
crates/toml_edit_fuzz/parse_document.rs
@@ -1,15 +1,15 @@
1
#![no_main]
2
3
-use toml_edit::Document;
+use toml_edit::DocumentMut;
4
5
libfuzzer_sys::fuzz_target!(|data| {
6
if let Ok(data) = std::str::from_utf8(data) {
7
println!("parsing: {data:?}");
8
- let doc = data.parse::<Document>();
+ let doc = data.parse::<DocumentMut>();
9
if let Ok(doc) = doc {
10
let toml = doc.to_string();
11
println!("parsing: {toml:?}");
12
- let doc = toml.parse::<Document>();
+ let doc = toml.parse::<DocumentMut>();
13
assert!(
14
doc.is_ok(),
15
"Failed to parse `doc.to_string()`: {}\n```\n{}\n```",
0 commit comments