Skip to content

Commit 870c8ca

Browse files
authored
Use $crate instead of bevy_ptr in move_as_ptr macro (#21113)
# Objective Fixes #21050 ## Solution Use the `$crate` metavariable in the `move_as_ptr` macro so that it always resolves the `bevy_ptr` crate correctly.
1 parent f40f040 commit 870c8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ptr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ macro_rules! move_as_ptr {
12121212
// it is impossible to refer to the original value, preventing further access after
12131213
// the `MovingPtr` has been used. `MaybeUninit` also prevents the compiler from
12141214
// dropping the original value.
1215-
let $value = unsafe { bevy_ptr::MovingPtr::from_value(&mut $value) };
1215+
let $value = unsafe { $crate::MovingPtr::from_value(&mut $value) };
12161216
};
12171217
}
12181218

0 commit comments

Comments
 (0)