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 all Clippy-lints for Clippy 0.0.212 #579

Merged
merged 3 commits into from
May 25, 2019

Conversation

Lakelezz
Copy link
Contributor

This updates Serenity's code to adhere to lints triggered by Clippy version 0.0.212.

Some lints got allowed that are not helpful or false-positives.

On another note, this removes the explicit impl BuildHasher on owners' HashSet<UserId> which was introduced to please Clippy in a prior commit.

Lakelezz added 2 commits May 25, 2019 13:47
`cyclomatic-complexity-threshold` to `cognitive-complexity-threshold`.
@Lakelezz Lakelezz added the enhancement An improvement to Serenity. label May 25, 2019
@Lakelezz Lakelezz added this to the 0.6 milestone May 25, 2019
@arqunis arqunis merged commit cd7d07e into serenity-rs:v0.6.x May 25, 2019
ghost pushed a commit that referenced this pull request Jun 24, 2019
Revert the 'say' method in the impl of 'guildchannel' from taking self.
This was accidentally done in a Clippy lint PR[1].

This is a breaking change, but is a bugfix, so a patch increase is fine.

[1]: #579

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
@ghost ghost mentioned this pull request Jun 24, 2019
Lakelezz pushed a commit that referenced this pull request Jun 24, 2019
Revert the 'say' method in the impl of 'guildchannel' from taking self.
This was accidentally done in a Clippy lint PR[1].

This is a breaking change, but is a bugfix, so a patch increase is fine.

[1]: #579

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
@Lakelezz Lakelezz deleted the fix-clippy-lints branch April 19, 2020 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to Serenity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants