Skip to content

Commit effa8d4

Browse files
digorithmclaude
andcommitted
style: fix clippy or_fun_call and nightly fmt in local_kv.rs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aae4894 commit effa8d4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

rust/kona/bin/host/src/interop/local_kv.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ impl KeyValueStore for InteropLocalInputs {
4343
serde_json::to_vec(&l1_config).ok()
4444
}
4545
DEPENDENCY_SET_KEY => {
46-
let dependency_set = self
47-
.cfg
48-
.read_dependency_set()
49-
.and_then(|r| r.ok())
50-
.unwrap_or(DependencySet {
51-
dependencies: Default::default(),
52-
override_message_expiry_window: None,
46+
let dependency_set =
47+
self.cfg.read_dependency_set().and_then(|r| r.ok()).unwrap_or_else(|| {
48+
DependencySet {
49+
dependencies: Default::default(),
50+
override_message_expiry_window: None,
51+
}
5352
});
5453
serde_json::to_vec(&dependency_set).ok()
5554
}

0 commit comments

Comments
 (0)