Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warnings & add CI build job for clippy #445

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

nickelc
Copy link
Contributor

@nickelc nickelc commented Sep 8, 2024

This PR fixes the current default clippy warnings and some selected warnings from the clippy::pedantic group.

It also adds an additional CI build job for clippy as suggested in #434 (review).

- `clippy::manual_pattern_char_comparison`
- `clippy::needless_borrows_for_generic_args`
- `clippy::range_plus_one`
- `clippy::redundant_closure_for_method_calls`
- `clippy::ref_binding_to_reference`
- `clippy::semicolon_if_nothing_returned`
- `clippy::single_char_pattern`
- `clippy::uninlined_format_args`

- allow `clippy::result_large_err`
- allow `clippy::large_enum_variant`
Copy link
Member

@daniel-abramov daniel-abramov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice! Thanks for picking it and improving!

@daniel-abramov daniel-abramov merged commit 2bc5387 into snapview:master Sep 8, 2024
7 checks passed
@nickelc nickelc deleted the clippy-warnings branch September 8, 2024 13:52
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