From 3ca886ee8cff65da08be9803b798cfb5c3579c96 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 4 Apr 2022 09:32:51 -0500 Subject: [PATCH] Remove unnecessary bounds. --- src/exploration.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/exploration.rs b/src/exploration.rs index cd7b925..c42c4db 100644 --- a/src/exploration.rs +++ b/src/exploration.rs @@ -81,7 +81,7 @@ fn exploration_type_change( features: Query<&ExplorationType>, ) -> Result<(), Box> where - S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash, + S: 'static + Clone + Debug + Eq + Hash + Send + Sync, A: Hash + Eq + Clone + Send + Sync, { if let (Some(select_next_type), Some(select_prev_type)) = ( @@ -158,7 +158,7 @@ fn exploration_type_focus( features: Query<(Entity, &Coordinates, &ExplorationType)>, ) -> Result<(), Box> where - S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash, + S: 'static + Clone + Debug + Eq + Hash + Send + Sync, A: Hash + Eq + Clone + Send + Sync, { if let (Some(explore_focus_next), Some(explore_focus_prev)) = ( @@ -249,7 +249,7 @@ fn exploration_focus( map: Query<&Map>, explorers: Query<(Entity, &Coordinates, Option<&Exploring>), With>, ) where - S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash, + S: 'static + Clone + Debug + Eq + Hash + Send + Sync, A: Hash + Eq + Clone + Send + Sync, { if let ( @@ -301,7 +301,7 @@ fn navigate_to_explored, &RevealedTiles)>, explorers: Query<(Entity, &Exploring)>, ) where - S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash, + S: 'static + Clone + Debug + Eq + Hash + Send + Sync, A: Hash + Eq + Clone + Send + Sync, { if let Some(navigate_to_explored) = config.action_navigate_to_explored.clone() { @@ -451,7 +451,7 @@ impl<'a, S, A, D> Default for ExplorationPlugin<'a, S, A, D> { impl<'a, S, A, D> Plugin for ExplorationPlugin<'a, S, A, D> where - S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash, + S: Clone + Debug + Eq + Hash + Send + Sync, A: Hash + Eq + Clone + Send + Sync, D: 'static + Clone + Default + Send + Sync, 'a: 'static,