Suppress clippy warnings

This commit is contained in:
Robert Dodd 2024-01-03 08:52:18 +11:00
parent e582d45df9
commit 6bc4725e22
3 changed files with 3 additions and 0 deletions

View file

@ -18,6 +18,7 @@ use std::any::TypeId;
#[derive(Default)] #[derive(Default)]
pub(crate) struct EcsSubscriptions { pub(crate) struct EcsSubscriptions {
pub resources: Box<HashMap<ComponentId, HashSet<ScopeId>>>, pub resources: Box<HashMap<ComponentId, HashSet<ScopeId>>>,
#[allow(clippy::type_complexity)]
pub events: Box<HashMap<TypeId, (Box<dyn Fn(&World) -> bool>, HashSet<ScopeId>)>>, pub events: Box<HashMap<TypeId, (Box<dyn Fn(&World) -> bool>, HashSet<ScopeId>)>>,
pub world_and_queries: Box<HashSet<ScopeId>>, pub world_and_queries: Box<HashSet<ScopeId>>,
} }

View file

@ -47,6 +47,7 @@ pub struct EventReaders {
} }
impl EventReaders { impl EventReaders {
#[allow(clippy::too_many_arguments)]
pub fn read_events( pub fn read_events(
&mut self, &mut self,
click: &Events<Pointer<Click>>, click: &Events<Pointer<Click>>,

View file

@ -8,6 +8,7 @@ use bevy::{
}; };
use std::f32::consts::PI; use std::f32::consts::PI;
#[allow(clippy::too_many_arguments)]
pub fn set_attribute( pub fn set_attribute(
name: &str, name: &str,
value: &str, value: &str,