Skip to content

Commit

Permalink
#[derive(Clone)] on Component{Info,Descriptor}
Browse files Browse the repository at this point in the history
  • Loading branch information
SludgePhD committed Sep 14, 2023
1 parent 8192ac6 commit 41452a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_ecs/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ pub enum StorageType {
}

/// Stores metadata for a type of component or resource stored in a specific [`World`].
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct ComponentInfo {
id: ComponentId,
descriptor: ComponentDescriptor,
Expand Down Expand Up @@ -315,6 +315,7 @@ impl SparseSetIndex for ComponentId {
}

/// A value describing a component or resource, which may or may not correspond to a Rust type.
#[derive(Clone)]
pub struct ComponentDescriptor {
name: Cow<'static, str>,
// SAFETY: This must remain private. It must match the statically known StorageType of the
Expand Down

0 comments on commit 41452a8

Please sign in to comment.