Removed manual Default implementation

This commit is contained in:
DaniD3v 2024-08-31 18:49:23 +02:00
parent 3535d2cda1
commit ff68b5cac5

View File

@ -19,7 +19,7 @@ const CURRENT_BASE_VERSION: &str = "1.0.0";
/// ///
/// This also allows you get some Performance or Resource boosts. /// This also allows you get some Performance or Resource boosts.
/// Important: The Configuration should match Vanilla by default /// Important: The Configuration should match Vanilla by default
#[derive(Deserialize, Serialize)] #[derive(Deserialize, Serialize, Default)]
pub struct AdvancedConfiguration { pub struct AdvancedConfiguration {
pub proxy: ProxyConfig, pub proxy: ProxyConfig,
pub authentication: AuthenticationConfig, pub authentication: AuthenticationConfig,
@ -111,21 +111,6 @@ impl Default for CompressionConfig {
} }
} }
/// Important: The Configuration should match Vanilla by default
impl Default for AdvancedConfiguration {
fn default() -> Self {
Self {
proxy: ProxyConfig::default(),
authentication: AuthenticationConfig::default(),
commands: CommandsConfig::default(),
packet_compression: CompressionConfig::default(),
resource_pack: ResourcePackConfig::default(),
rcon: RCONConfig::default(),
pvp: PVPConfig::default(),
}
}
}
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
pub struct BasicConfiguration { pub struct BasicConfiguration {
/// A version identifier for the configuration format. /// A version identifier for the configuration format.