From cb5eb67802aba2db33be4186914a6a7419f86a66 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Mon, 10 Jun 2024 13:50:09 -0700 Subject: [PATCH] Fix `clippy::ref_as_ptr` lint. This was caused by updating the package's `rust-version`. --- all-is-cubes/src/behavior.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,