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.
toml_edit::Document
DocumentMut
1 parent 0d64a80 commit 0faf817Copy full SHA for 0faf817
src/main.rs
@@ -251,7 +251,7 @@ fn run_machete() -> anyhow::Result<bool> {
251
}
252
253
fn remove_dependencies(manifest: &str, dependencies_list: &[String]) -> anyhow::Result<String> {
254
- let mut manifest = toml_edit::Document::from_str(manifest)?;
+ let mut manifest = toml_edit::DocumentMut::from_str(manifest)?;
255
let dependencies = manifest
256
.iter_mut()
257
.find_map(|(k, v)| (v.is_table_like() && k == "dependencies").then_some(Some(v)))
0 commit comments