Skip to content

fix: resolve clippy warnings breaking CI on main#46

Merged
alvinreal merged 1 commit intomainfrom
fix/clippy-warnings
Feb 21, 2026
Merged

fix: resolve clippy warnings breaking CI on main#46
alvinreal merged 1 commit intomainfrom
fix/clippy-warnings

Conversation

@alvinreal
Copy link
Owner

Problem

CI on main is failing after #45 merge due to 3 clippy warnings treated as errors:

  1. clippy::single_match — single-arm match for modulo-by-zero check in eval.rs
  2. clippy::redundant_closure — unnecessary closure in join() in functions.rs
  3. clippy::approx_constant — test values 3.14 detected as approximate PI in functions.rs

Fix

  • Replaced match with if let for the modulo-by-zero check
  • Replaced |v| to_str(v) with to_str directly
  • Changed test values from 3.14 to 2.72 to avoid PI detection

All 575 tests passing, clippy clean.

- Replace single-arm match with if-let for modulo-by-zero check (clippy::single_match)
- Remove redundant closure in join() (clippy::redundant_closure)
- Replace 3.14 test values with 2.72 to avoid clippy::approx_constant (PI detection)

Fixes CI failure introduced by #45.
@alvinreal alvinreal merged commit 8bd6718 into main Feb 21, 2026
6 checks passed
@github-actions github-actions bot mentioned this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant