aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/net/network_property.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/whirl_server/src/net/network_property.rs')
-rw-r--r--crates/whirl_server/src/net/network_property.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/whirl_server/src/net/network_property.rs b/crates/whirl_server/src/net/network_property.rs
index ef793bc..390412e 100644
--- a/crates/whirl_server/src/net/network_property.rs
+++ b/crates/whirl_server/src/net/network_property.rs
@@ -1,7 +1,7 @@
// Copyright (C) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only
-#[derive(Clone)]
+#[derive(Clone, Default)]
pub struct NetworkProperty {
pub prop_id: i32,
pub value: String,
@@ -9,6 +9,3 @@ pub struct NetworkProperty {
impl NetworkProperty {
pub fn _new() -> Self { Self::default() }
}
-impl Default for NetworkProperty {
- fn default() -> Self { Self { prop_id: 0, value: "".to_string() } }
-}