-
Notifications
You must be signed in to change notification settings - Fork 747
clippy: -D unnecessary_cast #3633
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I swear once upon a compiler a lot of these were required.
I kinda liked the intentionality of type conversion Rust asked for once upon a time, but the ergonomics of implicit conversion of unambiguous casts is admittedly nice.
I could be wrong, I don't think that's what's happening here. Rust only implicitly assumes an integer time for literals which aren't otherwise "driven to a type" (e.g. through the |
Pull Request Overview
This pull request updates the tock source so that we pass the
unnecessary_cast
lint.Testing Strategy
travis
TODO or Help Wanted
n/a
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.