diff --git a/crates/bevy_ecs/macros/src/component.rs b/crates/bevy_ecs/macros/src/component.rs index 4626af3393f38..6516e4fd28e67 100644 --- a/crates/bevy_ecs/macros/src/component.rs +++ b/crates/bevy_ecs/macros/src/component.rs @@ -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()