Skip to content

Commit

Permalink
update debug api to version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Mar 15, 2024
1 parent 4d8da0c commit 014ea50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/migrate-imported.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};

Expand Down Expand Up @@ -127,7 +127,7 @@ fn update_root_toml(args: &Args) -> Vec<String> {

// 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");
Expand Down

0 comments on commit 014ea50

Please sign in to comment.