aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state/channel.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-06-19 18:38:17 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-06-19 18:38:17 +0200
commitb2e9021341794ab52edcf4598c8d454515f758c4 (patch)
treeb61bacf7768c7edd781a50ae8006dcda5ec3d842 /mumd/src/state/channel.rs
parentad0ee3950aa5a54a3617d6f028ab90d4c79553f0 (diff)
parentc774aadf26b7ecc08a548ed5d781ea3fc5eac1b2 (diff)
downloadmum-b2e9021341794ab52edcf4598c8d454515f758c4.tar.gz
Merge remote-tracking branch 'origin/documentation'
Diffstat (limited to 'mumd/src/state/channel.rs')
-rw-r--r--mumd/src/state/channel.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/mumd/src/state/channel.rs b/mumd/src/state/channel.rs
index 6995e1e..2ed05c5 100644
--- a/mumd/src/state/channel.rs
+++ b/mumd/src/state/channel.rs
@@ -169,13 +169,10 @@ pub fn into_channel(
impl From<&Channel> for mumlib::state::Channel {
fn from(channel: &Channel) -> Self {
- mumlib::state::Channel {
- description: channel.description.clone(),
- links: Vec::new(),
- max_users: channel.max_users,
- name: channel.name.clone(),
- children: Vec::new(),
- users: Vec::new(),
- }
+ mumlib::state::Channel::new(
+ channel.name.clone(),
+ channel.description.clone(),
+ channel.max_users,
+ )
}
}