-
Notifications
You must be signed in to change notification settings - Fork 40
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
Clippy "unnecessary_wraps" lint should be off by default, isn't #38
Comments
Here's a bit more background.
I gather what must have happened was that:
So the explanations for the above data points are:
(5) and (6) follow directly from above. Given all of the above, I think the fix to disable this makes sense. Two caveats: (1) I wonder if this will needless break developers using 1.49 and other recent versions, if those don't have this check at all. (2) We should remember to remove this once we update to 1.51 (or whatever version of Rust includes a clippy where the warning is pedantic). The obvious alternative is to pin the CI build to 1.49 until an updated Rust is released with the clippy change. In an ideal world, I think I would pin CI to a particular stable version, but whenever a new one is released, I would have a bot file a PR to update it. Most of the time, I would expect that to be a trivial change that just updates the version and passes all CI tests. In cases like this, it would require someone to add a commit that fixes the breakage as well. Short of that automation, though, I'm more worried about the problem of getting pinned to an ancient toolchain. |
Agree with this, a couple comments inline.
Yeah, it didn't exist on stable at that time - I tried adding an
Agreed.
Yeah, this decision seems fine to me - the cost for "a line or two" sorta fixes seems relatively quick, and probably worth it to be aware of new updates (so we can stay on top of changes) as soon as possible. I'd probably have a different opinion if we were less active in development, but for now, these sorts of changes seem like they (should? I hope???) be relatively small fixes. |
Since the workaround now landed, I'll close this issue, with follow-up in #40 . |
Currently, we run clippy as a part of CI with default options. Default clippy settings should "allow" pedantic lints - such as unnecessary_wraps - but for some reason, this lint is triggering warnings.
This bug tracks the explicit "allow" for this lint (a workaround) which may be removed when this is resolved.
The text was updated successfully, but these errors were encountered: