Skip to content

Commit 89b3137

Browse files
committed
Fix clippy for staking precompile
1 parent a379a13 commit 89b3137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/precompiles/staking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl StakingPrecompile {
119119
}
120120

121121
fn parse_netuid(data: &[u8], offset: usize) -> Result<u16, PrecompileFailure> {
122-
if data.len() < (offset + 2) as usize {
122+
if data.len() < offset + 2 {
123123
return Err(PrecompileFailure::Error {
124124
exit_status: ExitError::InvalidRange,
125125
});

0 commit comments

Comments
 (0)