@@ -53,9 +53,9 @@ pub struct ReflectComponentFns {
53
53
/// Function pointer implementing [`ReflectComponent::remove()`].
54
54
pub remove : fn ( & mut EntityMut ) ,
55
55
/// Function pointer implementing [`ReflectComponent::contains()`].
56
- pub contains : fn ( & EntityRef ) -> bool ,
56
+ pub contains : fn ( EntityRef ) -> bool ,
57
57
/// Function pointer implementing [`ReflectComponent::reflect()`].
58
- pub reflect : for < ' a > fn ( & ' a EntityRef ) -> Option < & ' a dyn Reflect > ,
58
+ pub reflect : fn ( EntityRef ) -> Option < & dyn Reflect > ,
59
59
/// Function pointer implementing [`ReflectComponent::reflect_mut()`].
60
60
pub reflect_mut : for <' a > fn ( & ' a mut EntityMut ) -> Option < Mut < ' a , dyn Reflect > > ,
61
61
/// Function pointer implementing [`ReflectComponent::reflect_unchecked_mut()`].
@@ -117,12 +117,12 @@ impl ReflectComponent {
117
117
}
118
118
119
119
/// Returns whether entity contains this [`Component`]
120
- pub fn contains ( & self , entity : & EntityRef ) -> bool {
120
+ pub fn contains ( & self , entity : EntityRef ) -> bool {
121
121
( self . 0 . contains ) ( entity)
122
122
}
123
123
124
124
/// Gets the value of this [`Component`] type from the entity as a reflected reference.
125
- pub fn reflect < ' a > ( & self , entity : & ' a EntityRef < ' a > ) -> Option < & ' a dyn Reflect > {
125
+ pub fn reflect < ' a > ( & self , entity : EntityRef < ' a > ) -> Option < & ' a dyn Reflect > {
126
126
( self . 0 . reflect ) ( entity)
127
127
}
128
128
0 commit comments