Skip to content

Commit

Permalink
rusk: fixed clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Feb 27, 2024
1 parent a2c04f9 commit 6dc89d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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

0 comments on commit 6dc89d6

Please sign in to comment.