Remove more unnecessary bounds.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2022-04-04 10:00:57 -05:00
parent 3ca886ee8c
commit 12c7759f66
2 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ fn movement_controls<S, A: 'static>(
>,
exploration_focused: Query<Entity, With<ExplorationFocused>>,
) where
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
A: Hash + Eq + Clone + Send + Sync,
{
for (entity, mut velocity, mut speed, max_speed, rotation_speed, mut position, destination) in
@ -229,7 +229,7 @@ fn snap<S, A: 'static>(
>,
) -> Result<(), Box<dyn Error>>
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(action) = config.action_snap_left.clone() {
@ -385,7 +385,7 @@ impl<'a, S, A> Default for NavigationPlugin<'a, S, A> {
impl<'a, S, A> Plugin for NavigationPlugin<'a, S, A>
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: 'static,
{

View File

@ -1,6 +1,6 @@
use std::{collections::HashMap, fmt::Debug, hash::Hash, time::Duration};
use bevy::{asset::HandleId, ecs::component::Component, prelude::*, transform::TransformSystem};
use bevy::{asset::HandleId, prelude::*, transform::TransformSystem};
use bevy_openal::{Buffer, Context, Sound, SoundState};
use rand::random;
@ -178,7 +178,7 @@ fn sound_icon<S>(
)>,
buffers: Res<Assets<Buffer>>,
) where
S: Component + Clone + Debug + Eq + Hash,
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
{
if !(*config).sound_icon_states.is_empty()
&& !config.sound_icon_states.contains(state.current())
@ -292,7 +292,7 @@ impl<'a, S> Default for SoundPlugin<'a, S> {
impl<'a, S> Plugin for SoundPlugin<'a, S>
where
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
'a: 'static,
{
fn build(&self, app: &mut App) {