Skip to content

Commit

Permalink
Use default serde impls for Entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Oct 7, 2022
1 parent 6b75589 commit 44b5972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
5 changes: 2 additions & 3 deletions crates/bevy_ecs/src/entity/mod.rs
Expand Up @@ -31,12 +31,11 @@
//! [`EntityMut::insert`]: crate::world::EntityMut::insert
//! [`EntityMut::remove`]: crate::world::EntityMut::remove
mod map_entities;
mod serde;

pub use self::serde::*;
pub use map_entities::*;

use crate::{archetype::ArchetypeId, storage::SparseSetIndex};
use serde::{Deserialize, Serialize};
use std::{convert::TryFrom, fmt, mem, sync::atomic::Ordering};

#[cfg(target_has_atomic = "64")]
Expand Down Expand Up @@ -104,7 +103,7 @@ type IdCursor = isize;
/// [`EntityMut::id`]: crate::world::EntityMut::id
/// [`EntityCommands`]: crate::system::EntityCommands
/// [`Query::get`]: crate::system::Query::get
#[derive(Clone, Copy, Hash, Eq, Ord, PartialEq, PartialOrd)]
#[derive(Clone, Copy, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub struct Entity {
pub(crate) generation: u32,
pub(crate) id: u32,
Expand Down
44 changes: 0 additions & 44 deletions crates/bevy_ecs/src/entity/serde.rs

This file was deleted.

0 comments on commit 44b5972

Please sign in to comment.