Skip to content

Fix all clippy lint warnings#109

Merged
mweiden merged 3 commits intomainfrom
claude/fix-lint-warnings-U8KiM
Apr 25, 2026
Merged

Fix all clippy lint warnings#109
mweiden merged 3 commits intomainfrom
claude/fix-lint-warnings-U8KiM

Conversation

@mweiden
Copy link
Copy Markdown
Owner

@mweiden mweiden commented Apr 25, 2026

Summary

  • Handle unused Result from db.insert() calls in tests with .unwrap()
  • Remove redundant & borrows in field::display() calls in main.rs; fix println!("")println!()
  • Auto-fix many style warnings via cargo clippy --fix: if-let collapsing, get_first, map_or simplification, io::Error::other, elided lifetimes, needless borrows, etc.
  • Add Default impls for MemTable and SqlEngine (delegate to new())
  • Add MemTable::is_empty
  • Fix malformed doc comment block in sstable.rs (empty line between /// sections)
  • Suppress type_complexity on hints field, run_read_with_quorum, read_repair, and parse_projection
  • Suppress too_many_arguments on run_read_with_quorum
  • Call repl.wait() after repl.kill() in query_grpc_test to avoid zombie processes

Test plan

  • cargo clippy --tests produces zero warnings
  • cargo test passes

https://claude.ai/code/session_01376NXRbNz1b9eNR2FV9dgt


Generated by Claude Code

claude added 3 commits April 25, 2026 07:34
Handle Results from db.insert() calls in tests with .unwrap(), remove
redundant & borrows in field::display() calls in main.rs, and fix
println!("") to println!().

https://claude.ai/code/session_01376NXRbNz1b9eNR2FV9dgt
- Auto-fix if-let collapsing, needless borrows, get_first, map_or
  simplification, io::Error::other, elided lifetimes, and more via
  cargo clippy --fix
- Add Default impls for MemTable and SqlEngine (new() delegates)
- Add MemTable::is_empty
- Fix empty line in sstable.rs doc comment block
- Suppress type_complexity on hints field, run_read_with_quorum return
  type, read_repair parameter, and parse_projection return type
- Suppress too_many_arguments on run_read_with_quorum
- Call repl.wait() after repl.kill() in query_grpc_test to avoid zombies

https://claude.ai/code/session_01376NXRbNz1b9eNR2FV9dgt
Applies the remaining if-let collapsing, get_first, io::Error::other,
and similar mechanical fixes across src/ and tests/ that were applied
by cargo clippy --fix but not yet committed.

https://claude.ai/code/session_01376NXRbNz1b9eNR2FV9dgt
@mweiden mweiden merged commit 6fc13e9 into main Apr 25, 2026
1 check passed
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.

2 participants