Fix clippy and enable clippy on CI
This commit is contained in:
committed by
Sébastien Crozet
parent
aef873f20e
commit
da92e5c283
@@ -41,12 +41,17 @@ impl Default for DebugRenderMode {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "dim2")]
|
||||
type InstancesMap = HashMap<TypeId, Vec<Point<Real>>>;
|
||||
#[cfg(feature = "dim3")]
|
||||
type InstancesMap = HashMap<TypeId, (Vec<Point<Real>>, Vec<[u32; 2]>)>;
|
||||
|
||||
/// Pipeline responsible for rendering the state of the physics engine for debugging purpose.
|
||||
pub struct DebugRenderPipeline {
|
||||
#[cfg(feature = "dim2")]
|
||||
instances: HashMap<TypeId, Vec<Point<Real>>>,
|
||||
instances: InstancesMap,
|
||||
#[cfg(feature = "dim3")]
|
||||
instances: HashMap<TypeId, (Vec<Point<Real>>, Vec<[u32; 2]>)>,
|
||||
instances: InstancesMap,
|
||||
/// The style used to compute the line colors for each element
|
||||
/// to render.
|
||||
pub style: DebugRenderStyle,
|
||||
|
||||
Reference in New Issue
Block a user