rust/hedgewars-server/src/core/types.rs
changeset 15547 863059f61793
parent 15102 80ff12edf5e6
child 15804 747278149393
--- a/rust/hedgewars-server/src/core/types.rs	Tue Feb 11 01:33:31 2020 +0100
+++ b/rust/hedgewars-server/src/core/types.rs	Sat Mar 07 01:04:37 2020 +0300
@@ -28,7 +28,7 @@
     DrawnMap(String),
 }
 
-#[derive(PartialEq, Eq, Clone, Debug)]
+#[derive(PartialEq, Eq, Clone, Debug, Default)]
 pub struct TeamInfo {
     pub owner: String,
     pub name: String,
@@ -42,7 +42,7 @@
     pub hedgehogs: [HedgehogInfo; MAX_HEDGEHOGS_PER_TEAM as usize],
 }
 
-#[derive(PartialEq, Eq, Clone, Debug)]
+#[derive(PartialEq, Eq, Clone, Debug, Default)]
 pub struct HedgehogInfo {
     pub name: String,
     pub hat: String,