From 89e2250347e73f47099f1909883eab19dd57796c Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Wed, 8 May 2024 15:59:25 +1200 Subject: [PATCH] fix --- bencher/src/build_wasm/wasm_project.rs | 2 +- weight-meter/src/mock.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bencher/src/build_wasm/wasm_project.rs b/bencher/src/build_wasm/wasm_project.rs index 5798499..e198941 100644 --- a/bencher/src/build_wasm/wasm_project.rs +++ b/bencher/src/build_wasm/wasm_project.rs @@ -403,7 +403,7 @@ fn project_enabled_features( // features already being present in nightly, we need this code to make // runtimes compile with all the possible rustc versions. if v.len() == 1 - && v.get(0).map_or(false, |v| *v == format!("dep:{}", f)) + && v.first().map_or(false, |v| *v == format!("dep:{}", f)) && std_enabled.as_ref().map(|e| e.iter().any(|ef| ef == *f)).unwrap_or(false) { return false; diff --git a/weight-meter/src/mock.rs b/weight-meter/src/mock.rs index 578028a..dbad007 100644 --- a/weight-meter/src/mock.rs +++ b/weight-meter/src/mock.rs @@ -160,7 +160,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); type WeightInfo = (); }