You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the unnecessary_wraps lint triggers, it highlights the entire function (in Rust Analyzer + VS Code at least).
I find this quite annoying: When I'm implementing a new function it can take a bit until I get to the part that can actually fail and return an error. Adding yellow squiggles to the entire function is quite distracting and also obscures other potential warnings:
Proposal:
Reduce amount of code highlighted. I'm not sure how exactly that works, but maybe the primary span could point only at the result type or the function signature>
At least inhibit the lint in the presence of todo!()
Description
If the
unnecessary_wraps
lint triggers, it highlights the entire function (in Rust Analyzer + VS Code at least).I find this quite annoying: When I'm implementing a new function it can take a bit until I get to the part that can actually fail and return an error. Adding yellow squiggles to the entire function is quite distracting and also obscures other potential warnings:
Proposal:
todo!()
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: