2 Checks for usages of `.then_some(..).unwrap_or(..)`
5 This can be written more clearly with `if .. else ..`
8 This lint currently only looks for usages of
9 `.then_some(..).unwrap_or(..)`, but will be expanded
10 to account for similar patterns.
15 x.then_some("a").unwrap_or("b");
20 if x { "a" } else { "b" };