apply new rustfmt.toml changes, fix some clippy lints

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry committed 2024-12-15 01:00:41 -05:00
1 parent 0317cc8cc5
commit 77e0b76408
296 files changed
+7147 -4300

No files matched your search

+3 -1
View File
@@ -39,7 +39,9 @@ pub fn increment(old: Option<&[u8]>) -> [u8; 8] {
/// Parses 8 big-endian bytes into an u64; panic on invalid argument
#[inline]
#[must_use]
pub fn u64_from_u8(bytes: &[u8]) -> u64 { u64_from_bytes(bytes).expect("must slice at least 8 bytes") }
pub fn u64_from_u8(bytes: &[u8]) -> u64 {
u64_from_bytes(bytes).expect("must slice at least 8 bytes")
}
/// Parses the big-endian bytes into an u64.
#[inline]