Skip to content

Commit

Permalink
Fix CI: Avoid using then_some because it's "unstable" (FuelLabs#2236)
Browse files Browse the repository at this point in the history
avoid using then_some
  • Loading branch information
mohammadfawaz authored and r-sitko committed Jul 6, 2022
1 parent 93eb225 commit 7d4846d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sway-core/src/type_engine/type_id.rs
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 7d4846d

Please sign in to comment.