Skip to content

Commit 9e27701

Browse files
committed
fmt
1 parent 6d11112 commit 9e27701

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/html_test.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,10 @@ export function hello(): string {
920920
.collect();
921921

922922
for window in positions.windows(2) {
923-
assert!(window[0] < window[1], "TOC headings are not in document order");
923+
assert!(
924+
window[0] < window[1],
925+
"TOC headings are not in document order"
926+
);
924927
}
925928

926929
// Verify heading levels aren't inflated: README h2 headings should NOT be
@@ -936,8 +939,7 @@ export function hello(): string {
936939
// Count nesting depth of the first README heading (Installation).
937940
// It should be in at most one <ul> nesting (the root <ul> + one sub-<ul>
938941
// for level 2), not two or more sub-<ul>s which would indicate inflated levels.
939-
let before_installation =
940-
&nav_html[..nav_html.find("Installation").unwrap()];
942+
let before_installation = &nav_html[..nav_html.find("Installation").unwrap()];
941943
let ul_depth = before_installation.matches("<ul>").count();
942944
assert!(
943945
ul_depth <= 2,

0 commit comments

Comments
 (0)