Skip to content

fix: resolve clippy warnings in explain and cli tests#151

Open
nh13 wants to merge 1 commit intostephenleo:mainfrom
nh13:nh13/fix-clippy-warnings
Open

fix: resolve clippy warnings in explain and cli tests#151
nh13 wants to merge 1 commit intostephenleo:mainfrom
nh13:nh13/fix-clippy-warnings

Conversation

@nh13
Copy link
Copy Markdown

@nh13 nh13 commented Apr 10, 2026

Summary

  • field_reassign_with_default in explain.rs tests: use struct initializer syntax instead of creating a Default and reassigning fields
  • trim_split_whitespace in cli.rs tests: remove redundant .trim() before .split_whitespace() (which already trims)

These are pre-existing warnings surfaced by Clippy 1.94. No functional changes.

I don't want to overwhelm — just noticed these while working on something else and figured a quick cleanup PR would be welcome.

Test plan

  • cargo fmt — passes
  • cargo clippy -- -D warnings — passes (these were the only two warnings)
  • cargo test — all tests pass

- field_reassign_with_default: use struct initializer instead of
  reassigning fields after Default::default()
- trim_split_whitespace: remove redundant .trim() before
  .split_whitespace()
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