Skip to content

Commit 85cf1a0

Browse files
Alan Baldassarreclaude
authored andcommitted
fix: suppress new clippy lints for Rust 1.93
- Allow self_only_used_in_recursion in gantt.rs and mermaid.rs - Allow private_interfaces in wasm schedule_internal method These are intentional patterns: recursive methods keep &self for consistency, and schedule_internal is pub for test visibility only. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 954539b commit 85cf1a0

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

crates/utf8proj-render/src/gantt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ impl HtmlGanttRenderer {
391391
result
392392
}
393393

394+
#[allow(unknown_lints)]
395+
#[allow(clippy::self_only_used_in_recursion)]
394396
fn collect_tasks<'a>(
395397
&self,
396398
tasks: &'a [Task],

crates/utf8proj-render/src/mermaid.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ impl Renderer for MermaidRenderer {
270270

271271
impl MermaidRenderer {
272272
/// Collect first predecessor for each task
273+
#[allow(unknown_lints)]
274+
#[allow(clippy::self_only_used_in_recursion)]
273275
fn collect_predecessors(
274276
&self,
275277
task: &utf8proj_core::Task,

crates/utf8proj-render/src/plantuml.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ impl Renderer for PlantUmlRenderer {
365365

366366
impl PlantUmlRenderer {
367367
/// Collect first predecessor for each task
368+
#[allow(unknown_lints)]
369+
#[allow(clippy::self_only_used_in_recursion)]
368370
fn collect_predecessors(&self, task: &utf8proj_core::Task, map: &mut HashMap<String, String>) {
369371
if let Some(first_dep) = task.depends.first() {
370372
map.insert(task.id.clone(), first_dep.predecessor.clone());

crates/utf8proj-wasm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ impl Playground {
736736
///
737737
/// This method is used by both the WASM binding and unit tests.
738738
/// Not exposed to WASM because Result<PlaygroundScheduleData, String> is not WASM-compatible.
739+
#[allow(private_interfaces)]
739740
pub fn schedule_internal(
740741
&mut self,
741742
input: &str,

0 commit comments

Comments
 (0)