You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opt.map(f).unwrap_or_else(g) is linted to suggest opt.map_or_else(g, f), but res.map(f).unwrap_or_else(g) is not linted even though it could be res.ok().map_or_else(|_| g(), f)
Somewhat ugly suggestion, so should be allow-by-default, maybe we should poke rustc to add Result::map_or_else