From 6dc89d63213a104c50e359a9f6176ae0aa659dae Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Tue, 27 Feb 2024 20:08:23 +0100 Subject: [PATCH] rusk: fixed clippy errors --- rusk/src/bin/config/chain.rs | 2 +- rusk/src/lib/chain/vm/migration.rs | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/rusk/src/bin/config/chain.rs b/rusk/src/bin/config/chain.rs index 6d910b5fb7..3ae2da1d21 100644 --- a/rusk/src/bin/config/chain.rs +++ b/rusk/src/bin/config/chain.rs @@ -30,7 +30,7 @@ impl ChainConfig { } // Override config migration_height - if let Some(migration_height) = args.migration_height.clone() { + if let Some(migration_height) = args.migration_height { self.migration_height = Some(migration_height) } } diff --git a/rusk/src/lib/chain/vm/migration.rs b/rusk/src/lib/chain/vm/migration.rs index 687455cb19..28690d0387 100644 --- a/rusk/src/lib/chain/vm/migration.rs +++ b/rusk/src/lib/chain/vm/migration.rs @@ -80,14 +80,12 @@ impl Migration { MIGRATION_GAS_LIMIT, )? .data; - session - .call::<_, ()>( - new_contract, - "set_slashed_amount", - &slashed_amount, - MIGRATION_GAS_LIMIT, - )? - .data; + session.call::<_, ()>( + new_contract, + "set_slashed_amount", + &slashed_amount, + MIGRATION_GAS_LIMIT, + )?; Ok(()) }