Skip to content

Commit

Permalink
adjust to master
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Nov 15, 2020
1 parent 15eea86 commit e4b174c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_ecs/src/system/commands.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::SystemId;
use crate::{
resource::{Resource, Resources},
Bundle, Component, DynamicBundle, Entity, EntityReserver, World,
Bundle, Component, ComponentError, DynamicBundle, Entity, EntityReserver, World,
};
use bevy_utils::tracing::debug;
use bevy_utils::tracing::{debug, warn};
use std::marker::PhantomData;

/// A [World] mutation
Expand Down Expand Up @@ -130,7 +130,7 @@ where
fn write(self: Box<Self>, world: &mut World, _resources: &mut Resources) {
match world.remove::<T>(self.entity) {
Ok(_) => (),
Err(bevy_hecs::ComponentError::MissingComponent(e)) => {
Err(ComponentError::MissingComponent(e)) => {
warn!(
"Failed to remove components {:?} with error: {}. Falling back to inefficient one-by-one component removing.",
std::any::type_name::<T>(),
Expand Down

0 comments on commit e4b174c

Please sign in to comment.