From 14f7662576ed54ba4c54d299a19a3e95855d1b1a Mon Sep 17 00:00:00 2001 From: Philip Maymin Date: Fri, 31 Jul 2026 03:49:22 +0200 Subject: [PATCH] Allow clippy::expect_used in claim_root_weight, matching its siblings runtime inherits [workspace.lints.clippy] where expect-used = "deny", and check-rust.yml runs cargo clippy --workspace --all-targets with -D warnings. claim_root_weight.rs uses .expect without the crate-level allow that evm_transaction_fee.rs and precompiles.rs both carry, so the lint job fails on main. --- runtime/tests/claim_root_weight.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/tests/claim_root_weight.rs b/runtime/tests/claim_root_weight.rs index fe91ccdde1..4fa0ae8891 100644 --- a/runtime/tests/claim_root_weight.rs +++ b/runtime/tests/claim_root_weight.rs @@ -1,3 +1,5 @@ +#![allow(clippy::expect_used)] + use frame_support::dispatch::{DispatchClass, GetDispatchInfo}; use node_subtensor_runtime::{ BlockWeights, Runtime, RuntimeCall, TxExtension, check_mortality, check_nonce, sudo_wrapper,