Skip to content

Commit 9243d27

Browse files
committed
clippy leveled up
1 parent 189c0f8 commit 9243d27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/physics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ impl Plugin for PhysicsPlugin {
2525
/// [Sprite]s which:
2626
/// - have colliders (you can use the `collider` example to create your own colliders)
2727
/// - have their `collision` flags set to `true`.
28-
#[derive(Clone, Debug, PartialEq)]
28+
#[derive(Clone, Debug, PartialEq, Eq)]
2929
pub struct CollisionEvent {
3030
pub state: CollisionState,
3131
pub pair: CollisionPair,
3232
}
3333

3434
/// Indicates whether a [`CollisionEvent`] is at the beginning or ending of a collision.
35-
#[derive(Clone, Copy, Debug, PartialEq)]
35+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
3636
pub enum CollisionState {
3737
Begin,
3838
End,

src/sprite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ use std::{
190190
};
191191

192192
/// Sprite presets using the asset pack all have colliders
193-
#[derive(Copy, Clone, Debug, PartialEq)]
193+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
194194
pub enum SpritePreset {
195195
RacingBarrelBlue,
196196
RacingBarrelRed,

0 commit comments

Comments
 (0)