Skip to content

Commit 610ab2b

Browse files
trepidityclaude
andcommitted
fix: resolve clippy field_reassign_with_default warning
Use struct initialization with ..Default instead of creating a default instance and reassigning a field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f96c643 commit 610ab2b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

crates/loom-tui/src/config.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ impl AppConfig {
196196
}
197197
}
198198

199-
let mut config = Self::default();
200-
config.first_launch = true;
201-
config
199+
Self {
200+
first_launch: true,
201+
..Self::default()
202+
}
202203
}
203204

204205
/// Parse config from a TOML string.

0 commit comments

Comments
 (0)