Fix clippy lint
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
Alex 2022-06-06 17:01:49 +02:00
parent 72a87c8686
commit 1f9a371b9a
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -1008,7 +1008,7 @@ impl ErrorCounter {
} }
} }
fn decode(data: &db::Value) -> Self { fn decode(data: &[u8]) -> Self {
Self { Self {
errors: u64::from_be_bytes(data[0..8].try_into().unwrap()), errors: u64::from_be_bytes(data[0..8].try_into().unwrap()),
last_try: u64::from_be_bytes(data[8..16].try_into().unwrap()), last_try: u64::from_be_bytes(data[8..16].try_into().unwrap()),