feat: rustc and clippy linting

This commit is contained in:
CleverWild
2026-04-10 00:42:43 +02:00
committed by Skipper
parent 96b4eb1d98
commit d4084ded35
69 changed files with 1491 additions and 979 deletions

View File

@@ -7,7 +7,7 @@ pub struct LengthError {
pub actual: usize,
}
pub fn u256_to_bytes(value: U256) -> [u8; 32] {
pub const fn u256_to_bytes(value: U256) -> [u8; 32] {
value.to_le_bytes()
}
pub fn bytes_to_u256(bytes: &[u8]) -> Option<U256> {