Skip to content

Commit 81804db

Browse files
committed
fmt
1 parent 7f302d4 commit 81804db

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,8 @@ fn extract_config_structs(source: &str) -> Vec<ConfigStructInfo> {
12101210
// Extract rename_all value
12111211
if let Some(start) = next_line.find('"') {
12121212
if let Some(end) = next_line[start + 1..].find('"') {
1213-
serde_rename_all = Some(next_line[start + 1..start + 1 + end].to_string());
1213+
serde_rename_all =
1214+
Some(next_line[start + 1..start + 1 + end].to_string());
12141215
}
12151216
}
12161217
def_line_idx += 1;

src/input/command_registry.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,13 @@ mod tests {
370370
});
371371

372372
let empty_contexts = std::collections::HashSet::new();
373-
let results = registry.filter("save", KeyContext::Normal, &keybindings, false, &empty_contexts);
373+
let results = registry.filter(
374+
"save",
375+
KeyContext::Normal,
376+
&keybindings,
377+
false,
378+
&empty_contexts,
379+
);
374380
assert!(results.len() >= 2); // At least "Save File" + "Test Save"
375381

376382
// Check that both built-in and custom commands appear

tests/e2e/config_editor.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ fn test_config_schema_exists_and_valid() {
8888
// Verify Config has expected properties
8989
let config = defs.get("Config").unwrap();
9090
let properties = config.get("properties").unwrap();
91-
assert!(properties.get("theme").is_some(), "Config should have theme");
91+
assert!(
92+
properties.get("theme").is_some(),
93+
"Config should have theme"
94+
);
9295
assert!(
9396
properties.get("editor").is_some(),
9497
"Config should have editor"
@@ -267,19 +270,15 @@ fn test_config_editor_cursor_preserved_after_toggle() {
267270
// The editor should show sections like: theme, editor, file_explorer, etc.
268271
// Navigate down to find a section
269272
for _ in 0..5 {
270-
harness
271-
.send_key(KeyCode::Down, KeyModifiers::NONE)
272-
.unwrap();
273+
harness.send_key(KeyCode::Down, KeyModifiers::NONE).unwrap();
273274
harness.render().unwrap();
274275
}
275276

276277
// Record cursor line before toggle
277278
let screen_before = harness.screen_to_string();
278279

279280
// Press Tab to toggle the section (expand/collapse)
280-
harness
281-
.send_key(KeyCode::Tab, KeyModifiers::NONE)
282-
.unwrap();
281+
harness.send_key(KeyCode::Tab, KeyModifiers::NONE).unwrap();
283282

284283
// Process any async operations
285284
for _ in 0..5 {

0 commit comments

Comments
 (0)