You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The material attribute in the HitRecord struct is a Trait object. This is not needed, since the HitRecord shouldn't own a copy of the material, and it is also innefficient, since a copy of the material struct takes place.
Instead, the material attribute should be defined as a reference to something that implements the Material trait.
The text was updated successfully, but these errors were encountered:
The material attribute in the HitRecord struct is a Trait object. This is not needed, since the HitRecord shouldn't own a copy of the material, and it is also innefficient, since a copy of the material struct takes place.
Instead, the material attribute should be defined as a reference to something that implements the Material trait.
The text was updated successfully, but these errors were encountered: