fix warning

This commit is contained in:
Elliott Pierce 2025-05-31 17:49:48 -04:00
parent 180b349721
commit 20a6ee3c7f

View File

@ -19,7 +19,7 @@ pub use crate::{
world::command_queue::CommandQueue,
};
use crate::{
entity::{ConstructedEntityDoesNotExistError, ConstructionError, EntitiesAllocator, EntityRow},
entity::{ConstructedEntityDoesNotExistError, ConstructionError, EntitiesAllocator},
error::{DefaultErrorHandler, ErrorHandler},
};
pub use bevy_ecs_macros::FromWorld;
@ -1525,7 +1525,7 @@ impl World {
/// Destructs the given `entity`, if it exists. This will also remove all of the entity's
/// [`Components`](Component).
/// The *only* difference between destructing and despawning an entity is that destructing does not release the `entity` to be reused.
/// It is up to the caller to either re-construct or fully despawn the `entity`; otherwise, the [`EntityRow`] will not be able to be reused.
/// It is up to the caller to either re-construct or fully despawn the `entity`; otherwise, the [`EntityRow`](crate::entity::EntityRow) will not be able to be reused.
///
/// Returns an [`EntityDestructError`] if the entity does not exist.
///