Skip to content

Commit 2d76d84

Browse files
committed
fix clippy
1 parent 12d90d4 commit 2d76d84

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

runtime/src/precompiles/metagraph.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,4 @@ impl MetagraphPrecompile {
372372
let result = u16::from_be_bytes(uid);
373373
Ok(result)
374374
}
375-
376-
fn parse_hotkey(data: &[u8]) -> Result<[u8; 32], PrecompileFailure> {
377-
if data.len() < 32 {
378-
return Err(PrecompileFailure::Error {
379-
exit_status: ExitError::InvalidRange,
380-
});
381-
}
382-
let mut hotkey = [0u8; 32];
383-
hotkey.copy_from_slice(get_slice(data, 0, 32)?);
384-
Ok(hotkey)
385-
}
386375
}

0 commit comments

Comments
 (0)