Fix CI: Avoid using `then_some` because it's "unstable"
avoid using then_some
@@ -167,10 +167,10 @@ impl TypeId {
match look_up_type_id(*self) {
TypeInfo::Enum {
type_parameters, ..
- } => (!type_parameters.is_empty()).then_some(type_parameters),
+ } => (!type_parameters.is_empty()).then(|| type_parameters),
TypeInfo::Struct {
type_parameters, ..
- } => (!type_parameters.is_empty()).then_some(type_parameters),
+ } => (!type_parameters.is_empty()).then(|| type_parameters),
_ => None,
}
}
