diff options
| author | Fuwn <[email protected]> | 2021-07-01 00:18:21 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-07-01 00:18:21 -0700 |
| commit | 1999d4173fa1e98b8ed6ff3b96c09e59b830f2da (patch) | |
| tree | 1f3db67421ce82394f669d8c5ca89d499445de11 | |
| parent | chore(global): remove unused `license-file` manifest keys (diff) | |
| download | whirl-1999d4173fa1e98b8ed6ff3b96c09e59b830f2da.tar.xz whirl-1999d4173fa1e98b8ed6ff3b96c09e59b830f2da.zip | |
refactor(whirl_server): implement `Clone` for `PropertyList`
The following commits will require `PropertyList` to be cloneable, this enables that.
| -rw-r--r-- | crates/whirl_server/src/net/network_property.rs | 1 | ||||
| -rw-r--r-- | crates/whirl_server/src/net/property_list.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/whirl_server/src/net/network_property.rs b/crates/whirl_server/src/net/network_property.rs index 55800a0..c8d9046 100644 --- a/crates/whirl_server/src/net/network_property.rs +++ b/crates/whirl_server/src/net/network_property.rs @@ -1,6 +1,7 @@ // Copyright (C) 2021-2021 The Whirlsplash Collective // SPDX-License-Identifier: GPL-3.0-only +#[derive(Clone)] pub struct NetworkProperty { pub prop_id: i32, pub value: String, diff --git a/crates/whirl_server/src/net/property_list.rs b/crates/whirl_server/src/net/property_list.rs index 2c52132..a1c4b34 100644 --- a/crates/whirl_server/src/net/property_list.rs +++ b/crates/whirl_server/src/net/property_list.rs @@ -12,6 +12,7 @@ use crate::{ }, }; +#[derive(Clone)] pub struct PropertyList(pub Vec<crate::net::network_property::NetworkProperty>); impl PropertyList { /// Convert a `PropertyList` to a ready-to-be sent command. |