We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720578d commit cf1e28eCopy full SHA for cf1e28e
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