diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-06 17:01:49 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-06 17:01:49 +0200 |
commit | 1f9a371b9a51ac0288b0137660b06a171853909b (patch) | |
tree | 9cba6eeb9bac35bc53fbf32d5e62405cb6992173 | |
parent | 72a87c86867e6d440ff810513f572bb7d2a646b6 (diff) | |
download | garage-1f9a371b9a51ac0288b0137660b06a171853909b.tar.gz garage-1f9a371b9a51ac0288b0137660b06a171853909b.zip |
Fix clippy lint
-rw-r--r-- | src/block/manager.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()), |