Skip to content

Commit

Permalink
Fix clippy::ref_as_ptr lint.
Browse files Browse the repository at this point in the history
This was caused by updating the package's `rust-version`.
  • Loading branch information
kpreid committed Jun 10, 2024
1 parent f8ad2f8 commit cb5eb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion all-is-cubes/src/behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Character>)
.map(|qi| core::ptr::from_ref(qi.behavior))
.collect::<Vec<_>>(),
vec![
Arc::as_ptr(&arc_qe) as *const dyn Behavior<Character>,
Expand Down

0 comments on commit cb5eb67

Please sign in to comment.