Skip to content

Commit

Permalink
chore: replace toml_edit::Document with DocumentMut
Browse files Browse the repository at this point in the history
As requested by the deprecation notice.
  • Loading branch information
bnjbvr committed Mar 24, 2024
1 parent 0d64a80 commit 0faf817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ fn run_machete() -> anyhow::Result<bool> {
}

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

0 comments on commit 0faf817

Please sign in to comment.