diff --git a/pumpkin-config/src/lan_broadcast.rs b/pumpkin-config/src/lan_broadcast.rs index b4dacb23..69c4b487 100644 --- a/pumpkin-config/src/lan_broadcast.rs +++ b/pumpkin-config/src/lan_broadcast.rs @@ -1,6 +1,6 @@ -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, Default)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/logging.rs b/pumpkin-config/src/logging.rs index 90d1d1e3..0f1447c5 100644 --- a/pumpkin-config/src/logging.rs +++ b/pumpkin-config/src/logging.rs @@ -1,6 +1,6 @@ -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/proxy.rs b/pumpkin-config/src/proxy.rs index ef61cb18..aefd2840 100644 --- a/pumpkin-config/src/proxy.rs +++ b/pumpkin-config/src/proxy.rs @@ -1,6 +1,6 @@ -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, Default)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/pvp.rs b/pumpkin-config/src/pvp.rs index 5d60c81b..b96933f2 100644 --- a/pumpkin-config/src/pvp.rs +++ b/pumpkin-config/src/pvp.rs @@ -1,6 +1,6 @@ -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/query.rs b/pumpkin-config/src/query.rs index e7326d99..19178560 100644 --- a/pumpkin-config/src/query.rs +++ b/pumpkin-config/src/query.rs @@ -1,6 +1,6 @@ -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, Default)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/rcon.rs b/pumpkin-config/src/rcon.rs index b6c15397..aae70676 100644 --- a/pumpkin-config/src/rcon.rs +++ b/pumpkin-config/src/rcon.rs @@ -1,7 +1,7 @@ -use serde::{Deserialize, Serialize}; -use std::net::{Ipv4Addr, SocketAddr}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; +use std::net::{Ipv4Addr, SocketAddr}; #[derive(Deserialize, Serialize, Clone)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/resource_pack.rs b/pumpkin-config/src/resource_pack.rs index 33c60f26..1fc4e207 100644 --- a/pumpkin-config/src/resource_pack.rs +++ b/pumpkin-config/src/resource_pack.rs @@ -1,6 +1,6 @@ -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, Default)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-config/src/server_links.rs b/pumpkin-config/src/server_links.rs index ab044bbd..3c97d96d 100644 --- a/pumpkin-config/src/server_links.rs +++ b/pumpkin-config/src/server_links.rs @@ -1,7 +1,7 @@ -use serde::{Deserialize, Serialize}; -use std::collections::HashMap; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; +use std::collections::HashMap; #[derive(Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] diff --git a/pumpkin-core/src/gamemode.rs b/pumpkin-core/src/gamemode.rs index 14224cdd..f4a8f1a8 100644 --- a/pumpkin-core/src/gamemode.rs +++ b/pumpkin-core/src/gamemode.rs @@ -1,9 +1,9 @@ use std::str::FromStr; use num_derive::FromPrimitive; -use serde::{Deserialize, Serialize}; #[cfg(feature = "schemars")] use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; #[derive(Debug, PartialEq, Eq)] pub struct ParseGameModeError;