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

chore: Fix clippy warnings #7

Merged
merged 6 commits into from
Dec 31, 2022
Merged

chore: Fix clippy warnings #7

merged 6 commits into from
Dec 31, 2022

Conversation

ev3nvy
Copy link
Owner

@ev3nvy ev3nvy commented Dec 31, 2022

This fixes clippy warnings generated by the default settings of clippy. Before stable release, I plan to enable more rules, but this is fine for now, as I don't wanna spend time fixing those now.

…Vectors`

This is a clippy recommendation. `unwrap_or()` was previously used, because
specifying Vector's generic type might have been needed.
This file is generated by `flatc` based on the provided schema, so
editing it directly, besides just adding a ignore statement, is
undesired.

We are already ignoring a warning about unused imports within that
file.
`zstd::bulk::decompress` actually does not require data to be a
mutable borrow, so we might as well not give it one.
This constructor was never used and didn't even need to exist.
Clippy was also complaining that the function had too many arguments.
@ev3nvy ev3nvy added this to the v0.1.0 milestone Dec 31, 2022
@ev3nvy ev3nvy merged commit aa552da into master Dec 31, 2022
@ev3nvy ev3nvy deleted the fix-clippy-warnings branch December 31, 2022 00:36
@ev3nvy ev3nvy added type: chore Updating grunt tasks status: completed Issue was resolved, or pull request was merged labels Jan 2, 2023
@ev3nvy ev3nvy changed the title Fix clippy warnings chore: Fix clippy warnings Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: completed Issue was resolved, or pull request was merged type: chore Updating grunt tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant