rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.34k stars 1.62k forks source link

feat: Add diagnostic fix to remove unnecessary wrapper in type mismatch #18458

Open Giga-Bowser opened 3 weeks ago

Giga-Bowser commented 3 weeks ago

closes #18383 I also reorganized some of the tests for the fix to add a missing Ok() or Some() wrapper as they were somewhat scattered. The diff for this ended up looking messy but it's just moving functions around.