-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
warn_self_convention and copy? #273
Comments
Agree. I'll see how easy it is to fix this. |
Good catch! It should be possible to check if the |
Please check if it works with this PR applied. |
Yes, it does! Nice work! |
Manishearth
added a commit
that referenced
this issue
Sep 1, 2015
methods: try to allow value self when type is Copy (fixes #273)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently got a
warn_self_convention
lint on a type that implementsCopy
, something like this:It seems to me that types that implement
Copy
should be permitted to use pass-by-value instead of pass-by-reference foras_
,to_
, and other such methods.The text was updated successfully, but these errors were encountered: