fix(lsp): silence clippy too_many_arguments on render_page_html
Adding list_margin pushed render_page_html to 8 params, tripping clippy::too_many_arguments under -D warnings in CI. Every parameter is a distinct render input and the function has a single production caller, so scope an #[allow] rather than introduce an options-struct abstraction. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -193,6 +193,9 @@ pub fn is_excluded(patterns: &[String], name: &str) -> bool {
|
|||||||
/// When set, it is stripped from wiki/interwiki link targets so a link
|
/// When set, it is stripped from wiki/interwiki link targets so a link
|
||||||
/// written with the extension (`[[todo.wiki]]`) exports to `todo.html`,
|
/// written with the extension (`[[todo.wiki]]`) exports to `todo.html`,
|
||||||
/// matching how the LSP resolves the same link for in-editor navigation.
|
/// matching how the LSP resolves the same link for in-editor navigation.
|
||||||
|
// Every parameter is a distinct, cohesive render input; bundling them into a
|
||||||
|
// struct would add an abstraction without simplifying the single caller.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn render_page_html(
|
pub fn render_page_html(
|
||||||
doc: &DocumentNode,
|
doc: &DocumentNode,
|
||||||
template: Option<String>,
|
template: Option<String>,
|
||||||
|
|||||||
Reference in New Issue
Block a user