Remove unnecessary bounds.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3fb03d6b41
commit
3ca886ee8c
|
@ -81,7 +81,7 @@ fn exploration_type_change<S, A: 'static>(
|
||||||
features: Query<&ExplorationType>,
|
features: Query<&ExplorationType>,
|
||||||
) -> Result<(), Box<dyn Error>>
|
) -> Result<(), Box<dyn Error>>
|
||||||
where
|
where
|
||||||
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
|
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
A: Hash + Eq + Clone + Send + Sync,
|
A: Hash + Eq + Clone + Send + Sync,
|
||||||
{
|
{
|
||||||
if let (Some(select_next_type), Some(select_prev_type)) = (
|
if let (Some(select_next_type), Some(select_prev_type)) = (
|
||||||
|
@ -158,7 +158,7 @@ fn exploration_type_focus<S, A: 'static>(
|
||||||
features: Query<(Entity, &Coordinates, &ExplorationType)>,
|
features: Query<(Entity, &Coordinates, &ExplorationType)>,
|
||||||
) -> Result<(), Box<dyn Error>>
|
) -> Result<(), Box<dyn Error>>
|
||||||
where
|
where
|
||||||
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
|
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
A: Hash + Eq + Clone + Send + Sync,
|
A: Hash + Eq + Clone + Send + Sync,
|
||||||
{
|
{
|
||||||
if let (Some(explore_focus_next), Some(explore_focus_prev)) = (
|
if let (Some(explore_focus_next), Some(explore_focus_prev)) = (
|
||||||
|
@ -249,7 +249,7 @@ fn exploration_focus<S, A: 'static, D: 'static + Clone + Default + Send + Sync>(
|
||||||
map: Query<&Map<D>>,
|
map: Query<&Map<D>>,
|
||||||
explorers: Query<(Entity, &Coordinates, Option<&Exploring>), With<Player>>,
|
explorers: Query<(Entity, &Coordinates, Option<&Exploring>), With<Player>>,
|
||||||
) where
|
) where
|
||||||
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
|
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
A: Hash + Eq + Clone + Send + Sync,
|
A: Hash + Eq + Clone + Send + Sync,
|
||||||
{
|
{
|
||||||
if let (
|
if let (
|
||||||
|
@ -301,7 +301,7 @@ fn navigate_to_explored<S, A: 'static, D: 'static + Clone + Default + Send + Syn
|
||||||
map: Query<(&Map<D>, &RevealedTiles)>,
|
map: Query<(&Map<D>, &RevealedTiles)>,
|
||||||
explorers: Query<(Entity, &Exploring)>,
|
explorers: Query<(Entity, &Exploring)>,
|
||||||
) where
|
) where
|
||||||
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
|
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
A: Hash + Eq + Clone + Send + Sync,
|
A: Hash + Eq + Clone + Send + Sync,
|
||||||
{
|
{
|
||||||
if let Some(navigate_to_explored) = config.action_navigate_to_explored.clone() {
|
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>
|
impl<'a, S, A, D> Plugin for ExplorationPlugin<'a, S, A, D>
|
||||||
where
|
where
|
||||||
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
|
S: Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
A: Hash + Eq + Clone + Send + Sync,
|
A: Hash + Eq + Clone + Send + Sync,
|
||||||
D: 'static + Clone + Default + Send + Sync,
|
D: 'static + Clone + Default + Send + Sync,
|
||||||
'a: 'static,
|
'a: 'static,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user