Repository navigation
CI clippy fails on Rust 1.100: allow needless_range_loop for the workspace - #99
Open
marcin-koziol wants to merge 1 commit into
Open
marcin-koziol wants to merge 1 commit into
marcin-koziol wants to merge 1 commit into
Conversation
Clippy 1.100 widened needless_range_loop to loops whose index also walks other buffers, which flags 48 channel loops in the DSP code. Rewriting them as zipped iterators reads worse there, so the lint is allowed for the workspace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI's
fmt · clippy · testjob installs the latest stable Rust. With Rust 1.100, clippy fails onmain:needless_range_loopnow also flags loops whose index walks several buffers at once. That is 48 places, almost allfor c in 0..channelsloops in the devices' DSP code that read input, write output and update per-channel state with the samec. Rewriting them as zipped iterators would read worse and risks mistakes in the audio code. So this allows the lint in[workspace.lints.clippy], with a comment saying why.With this and #85 (rustfmt 1.100),
cargo +1.100.0 clippy --workspace --all-targets -- -D warningspasses.Cargo 1.100 also warns about a few unused dependencies (
tracingin faderframe-audio and faderframe-project,thiserrorin faderframe-script,serdein faderframe-speech,faderframe-corein faderframe-timeline). Those are cargo's warnings, not clippy's, so they don't fail CI. I left them alone, because some may be used only on another platform.🤖 Generated with Claude Code