From 1f9a371b9a51ac0288b0137660b06a171853909b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 6 Jun 2022 17:01:49 +0200 Subject: Fix clippy lint --- src/block/manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/manager.rs b/src/block/manager.rs index 48aed75d..8abff1b1 100644 --- a/src/block/manager.rs +++ b/src/block/manager.rs @@ -1008,7 +1008,7 @@ impl ErrorCounter { } } - fn decode(data: &db::Value) -> Self { + fn decode(data: &[u8]) -> Self { Self { errors: u64::from_be_bytes(data[0..8].try_into().unwrap()), last_try: u64::from_be_bytes(data[8..16].try_into().unwrap()), -- cgit v1.2.3