Skip to content

Commit

Permalink
Remove get_mut method from ReflectInterpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Mar 27, 2024
1 parent a0ea5aa commit 8ada07f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ impl<Item> ReflectInterpolator<Item> {

/** Downcast a `&mut dyn Reflect` type to `&mut dyn Interpolator`.
If the type cannot be downcast, `None` is returned.*/
pub fn get_mut<'a>(
&self,
reflect_value: &'a mut dyn Reflect,
) -> Option<&'a mut dyn Interpolator<Item = Item>> {
(self.get_mut_func)(reflect_value)
}
// If the type cannot be downcast, `None` is returned.*/
// pub fn get_mut<'a>(
// &self,
// reflect_value: &'a mut dyn Reflect,
// ) -> Option<&'a mut dyn Interpolator<Item = Item>> {
// (self.get_mut_func)(reflect_value)
// }

/** Downcast a `Box<dyn Reflect>` type to `Box<dyn Interpolator>`.
Expand Down

0 comments on commit 8ada07f

Please sign in to comment.