diff --git a/scripts/migrate-imported.rs b/scripts/migrate-imported.rs index 3ef7a56..fa80cbf 100644 --- a/scripts/migrate-imported.rs +++ b/scripts/migrate-imported.rs @@ -16,7 +16,7 @@ use { clap::Parser, - std::{borrow::{Borrow, BorrowMut}, ops::DerefMut, path::{Path, PathBuf}}, + std::path::{Path, PathBuf}, toml_edit::{Array, Document, Formatted, Item, Value}, }; @@ -127,7 +127,7 @@ fn update_root_toml(args: &Args) -> Vec { // Add feature "runtime-1600" to "evm-tracing-event" if dep_name == "evm-tracing-events" { - let Value::Array(features) = dep_table.get_or_insert("features", Array::new()) else { + let Value::Array(ref mut features) = dep_table.get_or_insert("features", Array::new()) else { panic!("expected features of `{dep_name}` to be an array or missing"); }; features.push("runtime-1600");