From 5d5fa155fc8c1c72553d2f1f9d0b8cd88a25a23a Mon Sep 17 00:00:00 2001 From: popcnt <142196625+popcnt1@users.noreply.github.com> Date: Sun, 26 Jan 2025 13:25:54 +0800 Subject: [PATCH] chore: fix lint issue (#3233) --- crates/rooch-da/src/actor/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rooch-da/src/actor/server.rs b/crates/rooch-da/src/actor/server.rs index ddc12e3645..ad5c2f5ded 100644 --- a/crates/rooch-da/src/actor/server.rs +++ b/crates/rooch-da/src/actor/server.rs @@ -132,7 +132,7 @@ impl DAServerActor { // (it's block number too for ChunkV0, which is the only version now) let future = stat.get_latest_done_chunk_id(); let result = future.await; // Resolve the future - let result = result.unwrap_or_else(|| 0); // for compatibility with old version which doesn't have this Optional field + let result = result.unwrap_or(0); // for compatibility with old version which doesn't have this Optional field avail_backends.push((identifier, result)); }