Skip to content

Code cleanup with Clippy + step for clippy in CI#112

Closed
gwen-lg wants to merge 13 commits intowebern:mainfrom
gwen-lg:code_cleanup_with_clippy
Closed

Code cleanup with Clippy + step for clippy in CI#112
gwen-lg wants to merge 13 commits intowebern:mainfrom
gwen-lg:code_cleanup_with_clippy

Conversation

@gwen-lg
Copy link
Copy Markdown

@gwen-lg gwen-lg commented Jul 18, 2025

This fix or update style of code from default clippy lint suggestions.

gwen-lg added 13 commits July 18, 2025 17:16
warning: this import is redundant
warn(clippy::single_component_path_imports)
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
warning: redundant field names in struct initialization
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
warn(clippy::redundant_field_names)
warning: variables can be used directly in the `format!` string
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
warn(clippy::needless_return): unneeded `return` statement
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
warn(clippy::needless_borrow): this expression creates a reference which is immediately dereferenced by the compiler
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warn(clippy::bool_comparison): equality checks against true are unnecessary
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
warn(clippy::redundant_static_lifetimes): constants have by default a `'static` lifetime
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
warn(clippy::unnecessary_mut_passed): the method `write_all` doesn't need a mutable reference
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
warn(clippy::single_match): you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
@webern
Copy link
Copy Markdown
Owner

webern commented Apr 9, 2026

I ended up doing this in a different PR. Thank you though!

@webern webern closed this Apr 9, 2026
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