diff --git a/crates/lib/src/games/eco/types.rs b/crates/lib/src/games/eco/types.rs index 7429b10..77e050b 100644 --- a/crates/lib/src/games/eco/types.rs +++ b/crates/lib/src/games/eco/types.rs @@ -217,7 +217,7 @@ impl CommonResponse for Response { } /// Extra request settings for eco queries. -#[derive(Debug, Default, Clone, PartialEq)] +#[derive(Debug, Default, Clone, Eq, PartialEq)] pub struct EcoRequestSettings { hostname: Option, } diff --git a/crates/lib/src/games/mindustry/types.rs b/crates/lib/src/games/mindustry/types.rs index c1e84f4..fcb68a1 100644 --- a/crates/lib/src/games/mindustry/types.rs +++ b/crates/lib/src/games/mindustry/types.rs @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize}; /// /// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/net/NetworkIO.java#L122-L135) #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub struct ServerData { pub host: String, pub map: String, @@ -27,7 +27,7 @@ pub struct ServerData { /// /// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/game/Gamemode.java) #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub enum GameMode { Survival, Sandbox, diff --git a/crates/lib/src/http.rs b/crates/lib/src/http.rs index e0670ad..aa5eaf9 100644 --- a/crates/lib/src/http.rs +++ b/crates/lib/src/http.rs @@ -75,7 +75,7 @@ impl HttpProtocol { /// .hostname(String::from("test.com")) /// .header(String::from("Authorization"), String::from("Bearer Token")); /// ``` -#[derive(Debug, Default, Clone, PartialEq)] +#[derive(Debug, Default, Clone, Eq, PartialEq)] pub struct HttpSettings> { /// Choose whether to use HTTP or HTTPS. pub protocol: HttpProtocol,