Skip to content

Commit

Permalink
fix: cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cchudant committed May 13, 2024
1 parent ff1f3f8 commit 9183a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client/db/src/meta_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl MetaDb {

if let Some(res) = res {
Ok(u64::from_be_bytes(
res.try_into().map_err(|_| DbError::Format(format!("current sync block should be a u64")))?,
res.try_into().map_err(|_| DbError::Format("current sync block should be a u64".into()))?,
))
} else {
Ok(0)
Expand Down

0 comments on commit 9183a20

Please sign in to comment.