Skip to content

Commit 0faf817

Browse files
committed
chore: replace toml_edit::Document with DocumentMut
As requested by the deprecation notice.
1 parent 0d64a80 commit 0faf817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ fn run_machete() -> anyhow::Result<bool> {
251251
}
252252

253253
fn remove_dependencies(manifest: &str, dependencies_list: &[String]) -> anyhow::Result<String> {
254-
let mut manifest = toml_edit::Document::from_str(manifest)?;
254+
let mut manifest = toml_edit::DocumentMut::from_str(manifest)?;
255255
let dependencies = manifest
256256
.iter_mut()
257257
.find_map(|(k, v)| (v.is_table_like() && k == "dependencies").then_some(Some(v)))

0 commit comments

Comments
 (0)