-
Notifications
You must be signed in to change notification settings - Fork 1.6k
bad get_unwrap suggestion #3006
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
Comments
We should
|
Can I take a shot at this issue? |
It's all yours. Don't hesitate to ask here, on irc or on discord if you have any questions or just open a PR with any (no matter how unfinished) code that you already have. |
Awesome thank you, I'll let you know if I have any questions |
Sorry for this ticket taking a bit longer than I thought, haven't had much time to concentrate. Besides the modified / new test, the fi should probably be in clippy_lints/src/utils/sugg.rs right? Edit: fi -> fix, I can type 95% of the time I promise |
"fi"? You should only have to modify |
Cool, I'll have a fix soon. Thanks for the point in the right direction! |
I haven't made any progress on this ticket b/c I honestly don't fundamentally understand how to make the modification. I'm confused as to what part of the code actually recommends the fix for this problem and therefore don't even know where to begin :/ |
The suggestion is produced by the |
If #3178 is merged, maybe this can be closed? |
The suggestion changes the result to
&Vec
instead ofVec
, so it doesn't compile. It has to bev[0..1]
or(&v[0..1])
instead.The text was updated successfully, but these errors were encountered: