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)]
pub(crate) struct EcsSubscriptions {
pub resources: Box<HashMap<ComponentId, HashSet<ScopeId>>>,
#[allow(clippy::type_complexity)]
pub events: Box<HashMap<TypeId, (Box<dyn Fn(&World) -> bool>, HashSet<ScopeId>)>>,
pub world_and_queries: Box<HashSet<ScopeId>>,
}

View File

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

View File

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