We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b55ead5 commit 0d4c7ecCopy full SHA for 0d4c7ec
clippy_lints/src/methods/map_unwrap_or.rs
@@ -61,6 +61,7 @@ pub(super) fn lint<'a, 'tcx>(
61
arg, suggest
62
)
63
} else {
64
+ debug_assert!(is_result);
65
"called `map(f).unwrap_or(a)` on a Result value. \
66
This can be done more directly by calling `map_or(a, f)` instead"
67
.to_string()
0 commit comments