We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suggests a better pattern of code.
direct_method_call
pedantic
More dry, shorter.
No response
A pattern I've seen in code:
let y = f64::floor(x as f64);
I think it's better written:
let y = (x as f64).floor();
The text was updated successfully, but these errors were encountered:
@rustbot claim
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What it does
Suggests a better pattern of code.
Lint Name
direct_method_call
Category
pedantic
Advantage
More dry, shorter.
Drawbacks
No response
Example
A pattern I've seen in code:
I think it's better written:
The text was updated successfully, but these errors were encountered: