Repository navigation
fix(lint): restore clean cargo clippy --all-targets --all-features - #112
Merged
Merged
Conversation
Fixes every warning that caused `cargo clippy --all-targets --all-features -- -D warnings` to fail, bringing test/bench/doc targets to the same strict lint posture as lib targets. Changes per lint: - needless_range_loop: use slice range iter in recursive_rules_test - collapsible_if: collapse nested if-let guards in udf_test (let-chains) - for_loops_over_single_element: unwrap single bench tuple in minigraf_bench - unused_import under wasm: gate `use Indexes` with #[cfg(not(feature="wasm"))] - to_string_in_format_args: drop redundant .to_string() on Uuid Display impls - approx_constant (PI): replace 3.14/2.71 test values with 3.5/2.5 - cast_lossless / redundant cast: remove u64 as u64 in packed_pages test - manual_arithmetic_check: use .saturating_sub(1) in persistent_facts test - create_without_truncate: add .truncate(true) to OpenOptions in persistent_facts test - clone_on_ref_ptr: use std::slice::from_ref instead of &[fact.clone()] in wal test - useless_vec: replace vec![...] with array literals in functions tests - doc_lazy_continuation: add blank /// lines after numbered list items in not_join_test Closes #110 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
==========================================
- Coverage 90.63% 83.73% -6.90%
==========================================
Files 26 26
Lines 14848 4729 -10119
Branches 565 0 -565
==========================================
- Hits 13457 3960 -9497
+ Misses 1318 769 -549
+ Partials 73 0 -73
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This was referenced Nov 30, 2026
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.
Summary
Fixes #110 — makes the full workspace pass
cargo clippy --all-targets --all-features -- -D warningswithout weakening any lint settings.One lint per bullet:
recursive_rules_test.rs): use slice range iter&nodes[1..10]instead of index loopudf_test.rs): collapse nestedif let+ guard intoif let Pat = expr && cond(Rust let-chains)minigraf_bench.rs): unwrap single-element tuple instead of iterating a one-item sliceoptimizer.rs): gateuse Indexeswith#[cfg(not(feature = "wasm"))]to match the test that uses itexecutor.rs): drop redundant.to_string()onUuid—Displayimpl suffices informat!executor.rs): replace3.14/2.71test-data floats with3.5/2.5to avoid PI/E approximation lintpacked_pages.rs): removen as u64whennis alreadyu64persistent_facts.rs): use.saturating_sub(1)instead of manualif x > 1 { x - 1 } else { 0 }persistent_facts.rs): add.truncate(true)toOpenOptionsin test creating a fresh filewal.rs): usestd::slice::from_ref(&fact)instead of&[fact.clone()]functions.rs): replacevec![...]with array literals where the Vec is immediately iteratednot_join_test.rs): add blank///lines after numbered list items to prevent continuation-indentation warningsTest plan
cargo clippy --all-targets --all-features -- -D warningspasses cleancargo test— all 788 tests passcargo fmt --checkpasses🤖 Generated with Claude Code