diff --git a/core/src/input/mod.rs b/core/src/input/mod.rs index acc8eedf27..be8ef2d29a 100644 --- a/core/src/input/mod.rs +++ b/core/src/input/mod.rs @@ -25,7 +25,7 @@ pub struct PlayerInput { pub slide: bool, } -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GameInputScheme { /// Left side of the keyboard, around WASD KeyboardRight, diff --git a/core/src/json/render.rs b/core/src/json/render.rs index f9bb5858af..a24512c950 100644 --- a/core/src/json/render.rs +++ b/core/src/json/render.rs @@ -67,7 +67,7 @@ pub mod color_opt { } } -#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] #[serde(remote = "FilterMode")] pub enum FilterModeDef { #[serde(rename = "linear")] diff --git a/core/src/network/mod.rs b/core/src/network/mod.rs index 9c2b097810..52cc76d29f 100644 --- a/core/src/network/mod.rs +++ b/core/src/network/mod.rs @@ -15,7 +15,7 @@ use serde::{Deserialize, Serialize}; pub type LobbyId = String; pub type PlayerId = String; -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct Server { pub http: SocketAddr, pub udp: SocketAddr, diff --git a/src/editor/input.rs b/src/editor/input.rs index 8f986a16ef..1b8f312485 100644 --- a/src/editor/input.rs +++ b/src/editor/input.rs @@ -2,7 +2,7 @@ use macroquad::{experimental::collections::storage, prelude::*}; use fishsticks::{Axis, Button}; -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum EditorInputScheme { Mouse, Gamepad(fishsticks::GamepadId),