From 014ea5059385f707d9ac1e4db9902341bcb98d31 Mon Sep 17 00:00:00 2001 From: Rodrigo Quelhas Date: Thu, 14 Mar 2024 18:31:43 +0000 Subject: [PATCH] update debug api to version 5 --- scripts/migrate-imported.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");