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
{{ message }}
Repository navigation
Warn about using bool::then_some followed by unwrap_or, suggest if/else instead #9100
My commit adds the lint for then_some/unwrap_or, more commits needed to address other cases. I'll get to them at some point, but anyone can feel free to take them before me.
Activity
joshtriplett commentedon Jul 2, 2022
This should also apply with any combination of
then/then_someandunwrap_or/unwrap_or_else.arieluy commentedon Jul 10, 2022
@rustbot claim
Auto merge of #9148 - arieluy:then_some_unwrap_or, r=Jarcho
arieluy commentedon Jul 28, 2022
My commit adds the lint for
then_some/unwrap_or, more commits needed to address other cases. I'll get to them at some point, but anyone can feel free to take them before me.trigger `obfuscated_if_else` for `.then(..).unwrap_or(..)` (#14021)