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

Add Clippy lints to CI #196

Merged
merged 4 commits into from
Aug 12, 2022
Merged

Conversation

talklittle
Copy link
Contributor

Fixes #181

I also made an API deprecation, since Clippy was complaining about Event.into_owned() taking &self which is unexpected. into_owned() methods usually take self by value, not by reference. See https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
Resolution was to deprecate into_owned() and add the properly named method, to_owned().
This change may be relevant to #178

Deprecate into_owned() because methods named "into_owned"
usually take self by value, not by reference. This method
takes it by reference, so the method should be named
"to_owned" instead.

https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

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

Thank you, @talklittle, looks great!

@hannobraun hannobraun merged commit 6b91958 into hannobraun:master Aug 12, 2022
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.

Consider using cargo clippy in test workflows
2 participants