rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

use `diag.span_help` if the target is multiline in `map_unwrap_or`

Open kyoto7250 opened this issue 6 months ago • 2 comments

close https://github.com/rust-lang/rust-clippy/issues/13242

This PR fixes the issue where errors from map_unwrap_or were only partially displayed. Through discussion on zulip, I changed to using span_help to issue change orders rather than inline changes.

https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Verbose.20suggestion.20missing.20line.20deletions

changelog: Corrected the error display for map_unwrap_or.

kyoto7250 avatar Aug 11 '24 20:08 kyoto7250