Remove more 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
3ca886ee8c
commit
12c7759f66
|
@ -64,7 +64,7 @@ fn movement_controls<S, A: 'static>(
|
||||||
>,
|
>,
|
||||||
exploration_focused: Query<Entity, With<ExplorationFocused>>,
|
exploration_focused: Query<Entity, With<ExplorationFocused>>,
|
||||||
) 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,
|
||||||
{
|
{
|
||||||
for (entity, mut velocity, mut speed, max_speed, rotation_speed, mut position, destination) in
|
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>>
|
) -> 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(action) = config.action_snap_left.clone() {
|
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>
|
impl<'a, S, A> Plugin for NavigationPlugin<'a, S, A>
|
||||||
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,
|
||||||
'a: 'static,
|
'a: 'static,
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{collections::HashMap, fmt::Debug, hash::Hash, time::Duration};
|
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 bevy_openal::{Buffer, Context, Sound, SoundState};
|
||||||
|
|
||||||
use rand::random;
|
use rand::random;
|
||||||
|
@ -178,7 +178,7 @@ fn sound_icon<S>(
|
||||||
)>,
|
)>,
|
||||||
buffers: Res<Assets<Buffer>>,
|
buffers: Res<Assets<Buffer>>,
|
||||||
) where
|
) where
|
||||||
S: Component + Clone + Debug + Eq + Hash,
|
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
{
|
{
|
||||||
if !(*config).sound_icon_states.is_empty()
|
if !(*config).sound_icon_states.is_empty()
|
||||||
&& !config.sound_icon_states.contains(state.current())
|
&& !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>
|
impl<'a, S> Plugin for SoundPlugin<'a, S>
|
||||||
where
|
where
|
||||||
S: bevy::ecs::component::Component + Clone + Debug + Eq + Hash,
|
S: 'static + Clone + Debug + Eq + Hash + Send + Sync,
|
||||||
'a: 'static,
|
'a: 'static,
|
||||||
{
|
{
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user