Skip to content

Commit 655b3eb

Browse files
committed
interning
1 parent 7ec9258 commit 655b3eb

File tree

15 files changed

+327
-248
lines changed

15 files changed

+327
-248
lines changed

crates/bevy_ecs/macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mod set;
66
mod states;
77

88
use crate::{fetch::derive_world_query_impl, set::derive_set};
9-
use bevy_macro_utils::{derive_boxed_label, get_named_struct_fields, BevyManifest};
9+
use bevy_macro_utils::{derive_interned_label, get_named_struct_fields, BevyManifest};
1010
use proc_macro::TokenStream;
1111
use proc_macro2::Span;
1212
use quote::{format_ident, quote};
@@ -465,7 +465,7 @@ pub fn derive_schedule_label(input: TokenStream) -> TokenStream {
465465
trait_path
466466
.segments
467467
.push(format_ident!("ScheduleLabel").into());
468-
derive_boxed_label(input, &trait_path)
468+
derive_interned_label(input, &trait_path)
469469
}
470470

471471
/// Derive macro generating an impl of the trait `SystemSet`.

crates/bevy_ecs/macros/src/set.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ pub fn derive_set(input: syn::DeriveInput, trait_path: &syn::Path) -> TokenStrea
7070
fn is_base(&self) -> bool {
7171
#is_base
7272
}
73-
74-
fn dyn_clone(&self) -> std::boxed::Box<dyn #trait_path> {
75-
std::boxed::Box::new(std::clone::Clone::clone(self))
76-
}
7773
}
7874
})
7975
.into()

0 commit comments

Comments
 (0)