diff --git a/all-is-cubes/src/behavior.rs b/all-is-cubes/src/behavior.rs index 21171672a..8cc192a70 100644 --- a/all-is-cubes/src/behavior.rs +++ b/all-is-cubes/src/behavior.rs @@ -1025,7 +1025,7 @@ mod tests { // General query should find both assert_eq!( set.query_any(None) - .map(|qi| qi.behavior as *const dyn Behavior) + .map(|qi| core::ptr::from_ref(qi.behavior)) .collect::>(), vec![ Arc::as_ptr(&arc_qe) as *const dyn Behavior,