aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-06 17:01:49 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-06 17:01:49 +0200
commit1f9a371b9a51ac0288b0137660b06a171853909b (patch)
tree9cba6eeb9bac35bc53fbf32d5e62405cb6992173
parent72a87c86867e6d440ff810513f572bb7d2a646b6 (diff)
downloadgarage-1f9a371b9a51ac0288b0137660b06a171853909b.tar.gz
garage-1f9a371b9a51ac0288b0137660b06a171853909b.zip
Fix clippy lint
-rw-r--r--src/block/manager.rs2
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()),