Skip to content

Commit 207f93d

Browse files
committed
rebase ontop of bevy-0.14-partial-update
1 parent a642c7c commit 207f93d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/one.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,9 @@ unsafe impl<Trait: ?Sized + TraitQuery> WorldQuery for WithoutAny<Trait> {
923923
}
924924

925925
#[inline]
926-
fn get_state(world: &World) -> Option<Self::State> {
927-
TraitQueryState::get(world)
926+
fn get_state(_: &Components) -> Option<Self::State> {
927+
// TODO: fix this https://github.com/bevyengine/bevy/issues/13798
928+
panic!("transmuting and any other operations concerning the state of a query are currently broken and shouldn't be used. See https://github.com/JoJoJet/bevy-trait-query/issues/59");
928929
}
929930

930931
#[inline]

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ fn print_without_any_filter_info(
570570
.0
571571
.push("People that are neither Human or Dolphin:".to_string());
572572
for person in (&people).into_iter() {
573-
output.0.push(format!("{person:?}"));
573+
output.0.push(format!("{person}"));
574574
}
575575
output.0.push(Default::default());
576576
}

0 commit comments

Comments
 (0)