Skip to content

Commit 052b9d8

Browse files
authored
Fix issue with define_label! instantiation in a 3rd party crate (#17958)
# Objective Calling `define_label!` in a `no_std` 3rd party crate currently requires the user to import `Box` themselves due to a non-fully-specified reference to `Box`. ## Solution Add a fully specified path for `Box` in the one location necessary, to match all of the other cases.
1 parent 4880a23 commit 052b9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ecs/src/label.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ macro_rules! define_label {
180180

181181
impl $crate::intern::Internable for dyn $label_trait_name {
182182
fn leak(&self) -> &'static Self {
183-
Box::leak(self.dyn_clone())
183+
$crate::label::Box::leak(self.dyn_clone())
184184
}
185185

186186
fn ref_eq(&self, other: &Self) -> bool {

0 commit comments

Comments
 (0)