rust-clippy
rust-clippy copied to clipboard
use `diag.span_help` if the target is multiline in `map_unwrap_or`
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.