style: rustfmt the issue #6 parity changes
`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:
@@ -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"));
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user