Skip to content

Commit dfc2950

Browse files
Fix clippy
1 parent 5887cbc commit dfc2950

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

substrate/frame/revive/src/address.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ pub struct AccountId32Mapper<T>(PhantomData<T>);
9999
/// The mapper to be used if the account id is `H160`.
100100
///
101101
/// It just trivially returns its inputs and doesn't make use of any state.
102+
#[allow(dead_code)]
102103
pub struct H160Mapper<T>(PhantomData<T>);
103104

104105
/// An account mapper that can be used for testing u64 account ids.

substrate/frame/revive/src/tests/pvm.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ fn instantiate_and_call_and_deposit_event() {
205205
.build_and_unwrap_contract();
206206
assert!(AccountInfoOf::<Test>::contains_key(&addr));
207207

208-
let hold_balance = contract_base_deposit(&addr);
209-
210208
assert_eq!(
211209
System::events(),
212210
vec![
@@ -930,9 +928,6 @@ fn self_destruct_by_precompile_works() {
930928
.native_value(initial_contract_balance)
931929
.build_and_unwrap_contract();
932930

933-
let hold_balance = contract_base_deposit(&contract.addr);
934-
let upload_deposit = get_code_deposit(&code_hash);
935-
936931
// Check that the BOB contract has been instantiated.
937932
let _ = get_contract(&contract.addr);
938933

0 commit comments

Comments
 (0)