Skip to content

fix: replace unstable Rust features with stable alternatives - #18

Closed
bordeux wants to merge 4 commits into
masterfrom
fix/fix-docker-build
Closed

fix: replace unstable Rust features with stable alternatives#18
bordeux wants to merge 4 commits into
masterfrom
fix/fix-docker-build

Conversation

@bordeux

@bordeux bordeux commented Jan 1, 2026

Copy link
Copy Markdown
Owner
  • Replace let-chains (if let && let) with nested if let in array.rs
  • Replace is_multiple_of() with modulo operator in statistics.rs

These features require nightly Rust but Docker builds use stable.

bordeux and others added 2 commits January 1, 2026 11:52
- Replace let-chains (if let && let) with nested if let in array.rs
- Replace is_multiple_of() with modulo operator in statistics.rs

These features require nightly Rust but Docker builds use stable.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Extract CLI logic into run() function in lib.rs that accepts args
- Simplify main.rs to minimal boilerplate (9 lines)
- Add 20 comprehensive tests for the run() function covering:
  - Template rendering, output files, validation flags
  - Error handling, CLI argument parsing
  - Trust mode, includes, and combined flags

This enables unit testing of the main entry point logic without
needing to spawn separate processes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jan 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.94%. Comparing base (3c98085) to head (94e8287).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/functions/array.rs 87.50% 1 Missing ⚠️
src/main.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   88.76%   88.94%   +0.17%     
==========================================
  Files          30       31       +1     
  Lines        1914     1917       +3     
==========================================
+ Hits         1699     1705       +6     
+ Misses        215      212       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

bordeux and others added 2 commits January 1, 2026 12:06
Add #[allow(...)] attributes to suppress clippy suggestions for
unstable features (let-chains, is_multiple_of) that would break
Docker builds using stable Rust.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Handle different error messages between Unix ("No such file") and
Windows ("cannot find") for missing file errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bordeux bordeux closed this Jan 1, 2026
@bordeux
bordeux deleted the fix/fix-docker-build branch January 1, 2026 11:48
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