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

style: fix misc clippy lints #271

Merged
merged 2 commits into from
Jul 29, 2022
Merged

style: fix misc clippy lints #271

merged 2 commits into from
Jul 29, 2022

Conversation

hawkw
Copy link
Owner

@hawkw hawkw commented Jul 28, 2022

No description provided.

@hawkw hawkw enabled auto-merge (rebase) July 28, 2022 16:14
@hawkw hawkw disabled auto-merge July 28, 2022 18:25
@hawkw hawkw enabled auto-merge (rebase) July 28, 2022 18:27
hawkw added a commit that referenced this pull request Jul 28, 2022
clippy doesn't like interior mutable items in `const`s, because
mutating an instance of the `const` value will not mutate the const.
that is the *correct* behavior here, as the const is used just as an
array initializer; every time it's referenced, it *should* produce a
new value. therefore, this warning is incorrect in this case.

see rust-lang/rust-clippy#7665
hawkw added a commit that referenced this pull request Jul 28, 2022
@hawkw hawkw disabled auto-merge July 28, 2022 18:27
clippy doesn't like interior mutable items in `const`s, because
mutating an instance of the `const` value will not mutate the const.
that is the *correct* behavior here, as the const is used just as an
array initializer; every time it's referenced, it *should* produce a
new value. therefore, this warning is incorrect in this case.

see rust-lang/rust-clippy#7665
@hawkw hawkw merged commit ba06ff1 into main Jul 29, 2022
@hawkw hawkw deleted the eliza/dewarn branch July 29, 2022 04:46
hawkw added a commit that referenced this pull request Jul 29, 2022
clippy doesn't like interior mutable items in `const`s, because
mutating an instance of the `const` value will not mutate the const.
that is the *correct* behavior here, as the const is used just as an
array initializer; every time it's referenced, it *should* produce a
new value. therefore, this warning is incorrect in this case.

see rust-lang/rust-clippy#7665
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