Skip to content

Commit 9ae7b58

Browse files
committed
style(tests): use captured fmt in panic, because 2025 exists
- Use captured identifiers in panic formatting for clarity and consistency - No behavior change Signed-off-by: Jessie Frazelle <[email protected]>
1 parent 1c2636a commit 9ae7b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ml/copilot/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mod tests {
138138
let out = app.handle_key_action(key(KeyCode::Enter, KeyModifiers::NONE));
139139
match out {
140140
KeyAction::Submit(ref s) => assert_eq!(s, "make it blue"),
141-
other => panic!("expected Submit, got {:?}", other),
141+
other => panic!("expected Submit, got {other:?}"),
142142
}
143143
assert!(app.input.is_empty());
144144
match app.events.last().unwrap() {

0 commit comments

Comments
 (0)