Skip to content

Commit

Permalink
then_some
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Mar 9, 2024
1 parent 54809cf commit 8e44f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/macros/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn get_type_registration(

attr.parse_nested_meta(|meta| {
meta.path.is_ident(reflect_trait)
.then(|| ())
.then_some(())
.ok_or_else(|| meta.error("missing required reflect attribute"))
})
.is_ok()
Expand Down

0 comments on commit 8e44f11

Please sign in to comment.