Suppress clippy warnings
This commit is contained in:
parent
e582d45df9
commit
6bc4725e22
|
@ -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>>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>>,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue