style: rustfmt the issue #6 parity changes
CI / cargo fmt --check (push) Successful in 54s
CI / cargo test (push) Successful in 1m18s
CI / cargo clippy (push) Successful in 1m24s
CI / editor keymaps (push) Successful in 1m42s

`cargo fmt --check` (CI) flagged the hand-formatted destructure in the
lexer test and an over-long line in export.rs. No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 15:29:46 +00:00
parent 5dd02e7b9e
commit e0f806d307
2 changed files with 8 additions and 3 deletions
+6 -2
View File
@@ -180,8 +180,12 @@ fn preformatted_block_parses_language() {
fn preformatted_block_parses_attrs() {
let lexed = lex("{{{rust class=\"hl\" key=val\nx\n}}}\n");
let PreformattedOpen {
language, attrs, raw, ..
} = &lexed[0] else {
language,
attrs,
raw,
..
} = &lexed[0]
else {
panic!("expected PreformattedOpen");
};
assert_eq!(language.as_deref(), Some("rust"));
+2 -1
View File
@@ -250,7 +250,8 @@ pub fn render_page_html(
if let Some(ext) = &ext {
if matches!(t.kind, LinkKind::Wiki | LinkKind::Interwiki) {
if let Some(p) = t.path.take() {
t.path = Some(crate::index::strip_wiki_extension(&p, Some(ext)).to_string());
t.path =
Some(crate::index::strip_wiki_extension(&p, Some(ext)).to_string());
}
}
}