-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove unnecessary clippy allows for new_ret_no_self #135
Remove unnecessary clippy allows for new_ret_no_self #135
Comments
clippy still claims to support this lint: https://rust-lang.github.io/rust-clippy/master/, but it seems like it is not working very well. We might need to report a bug against clippy. |
Actually, it looks like the lint was deliberately relaxed a bit, see here: rust-lang/rust-clippy#3313 and here: rust-lang/rust-clippy#3620. I think that, so long as Self is somewhere in the return type clippy does not issue a warning. |
Resolved by attached issues. |
clippy has a point; and it helps to distinguish between constructors that can't fail, and initialization actions that affect the world and can actually take action. The lint is
clippy::new_ret_no_self
.The text was updated successfully, but these errors were encountered: