eq_update requires owned next value
use crate::state_types::Effects;
-pub fn eq_update<T: Clone + PartialEq>(value: &mut T, next_value: &T) -> Effects {
+pub fn eq_update<T: Clone + PartialEq>(value: &mut T, next_value: T) -> Effects {
if next_value.ne(value) {
- *value = next_value.to_owned();
+ *value = next_value;
Effects::none()
} else {
Effects::none().unchanged()
