Skip to content

Commit

Permalink
rusk: fixed clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm authored and herr-seppia committed Mar 8, 2024
1 parent 67d2adf commit 262feb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rusk/src/bin/config/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
14 changes: 6 additions & 8 deletions rusk/src/lib/chain/vm/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down
2 changes: 1 addition & 1 deletion rusk/tests/common/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn new_state<P: AsRef<Path>>(dir: P, snapshot: &Snapshot) -> Result<Rusk> {
let (_, commit_id) = state::deploy(dir, snapshot)
.expect("Deploying initial state should succeed");

let rusk = Rusk::new(dir).expect("Instantiating rusk should succeed");
let rusk = Rusk::new(dir, None).expect("Instantiating rusk should succeed");

assert_eq!(
commit_id,
Expand Down

0 comments on commit 262feb7

Please sign in to comment.