Skip to content

Commit 6245c93

Browse files
fix test
1 parent 2baa5c7 commit 6245c93

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/bevy_ecs/src/observer/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,7 @@ mod tests {
13771377
}
13781378

13791379
#[test]
1380+
#[cfg(feature = "track_change_detection")]
13801381
#[track_caller]
13811382
fn observer_caller_location_event() {
13821383
#[derive(Event)]
@@ -1391,6 +1392,7 @@ mod tests {
13911392
}
13921393

13931394
#[test]
1395+
#[cfg(feature = "track_change_detection")]
13941396
#[track_caller]
13951397
fn observer_caller_location_command_archetype_move() {
13961398
#[derive(Component)]

crates/bevy_ecs/src/world/entity_ref.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::{
1414
};
1515
use bevy_ptr::{OwningPtr, Ptr};
1616
use bevy_utils::{HashMap, HashSet};
17+
#[cfg(feature = "track_change_detection")]
1718
use core::panic::Location;
1819
use core::{any::TypeId, marker::PhantomData, mem::MaybeUninit};
1920
use thiserror::Error;

0 commit comments

Comments
 (0)