Skip to content

Commit 5209ac4

Browse files
committed
fix: apply rustfmt formatting fixes
1 parent 179148c commit 5209ac4

File tree

1 file changed

+13
-4
lines changed
  • src/cortex-tui/src/widgets/help_browser

1 file changed

+13
-4
lines changed

src/cortex-tui/src/widgets/help_browser/tests.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ mod tests {
4343
#[test]
4444
fn test_help_browser_state_with_topic() {
4545
let state = HelpBrowserState::new().with_topic(Some("keyboard"));
46-
assert_eq!(state.current_section().expect("should have section").id, "keyboard");
46+
assert_eq!(
47+
state.current_section().expect("should have section").id,
48+
"keyboard"
49+
);
4750
}
4851

4952
#[test]
@@ -220,10 +223,16 @@ mod tests {
220223
#[test]
221224
fn test_current_section() {
222225
let mut state = HelpBrowserState::new();
223-
assert_eq!(state.current_section().expect("should have section").id, "getting-started");
226+
assert_eq!(
227+
state.current_section().expect("should have section").id,
228+
"getting-started"
229+
);
224230

225231
state.select_next();
226-
assert_eq!(state.current_section().expect("should have section").id, "keyboard");
232+
assert_eq!(
233+
state.current_section().expect("should have section").id,
234+
"keyboard"
235+
);
227236
}
228237

229238
#[test]
@@ -239,4 +248,4 @@ mod tests {
239248
state.sections.clear();
240249
assert!(state.current_section().is_none());
241250
}
242-
}
251+
}

0 commit comments

Comments
 (0)