Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

ci: Add clippy + fixing clippy errors #14

Merged
merged 6 commits into from
Jul 21, 2023
Merged

ci: Add clippy + fixing clippy errors #14

merged 6 commits into from
Jul 21, 2023

Conversation

aasseman
Copy link
Collaborator

@aasseman aasseman commented Jul 20, 2023

I added clippy in CI such that it fails on warnings, but ignores dead code (thought it'd be useful for now after looking at #13 ).

I also fixed or silenced clippy errors in a few passes. Reviewing commit by commit should be easier.

Some choices here are opinionated, so feel free to push back on some of the choices here.

Fixes #5

@aasseman aasseman requested a review from hopeyen July 20, 2023 18:03
@aasseman aasseman self-assigned this Jul 20, 2023
@aasseman aasseman marked this pull request as draft July 20, 2023 18:09
Signed-off-by: Alexis Asseman <[email protected]>
Signed-off-by: Alexis Asseman <[email protected]>
IndexerError already implemented to_string through
`impl std::fmt::Display for IndexerError`

Signed-off-by: Alexis Asseman <[email protected]>
Also fixes clippy::clone_double_ref

Signed-off-by: Alexis Asseman <[email protected]>
@aasseman aasseman marked this pull request as ready for review July 20, 2023 18:26
Copy link
Owner

@hopeyen hopeyen left a comment

Choose a reason for hiding this comment

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

lgtm!

@aasseman aasseman merged commit abfe3f7 into main Jul 21, 2023
2 checks passed
@hopeyen hopeyen deleted the aasseman/issue5 branch July 21, 2023 02:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: cargo clippy
2 participants