diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-06-19 19:37:29 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-06-19 19:37:29 +0200 |
| commit | 99ed190ca9691a46719c8a88d3f2437ba8e3c2ff (patch) | |
| tree | 0aa604663f704017f9d1705e881476d6631b12a3 /mumd/src/state/channel.rs | |
| parent | ee13c1662eba47ffe2716bdc26bbfcd0609ff521 (diff) | |
| parent | b2e9021341794ab52edcf4598c8d454515f758c4 (diff) | |
| download | mum-99ed190ca9691a46719c8a88d3f2437ba8e3c2ff.tar.gz | |
Merge remote-tracking branch 'origin/main' into ogg
Diffstat (limited to 'mumd/src/state/channel.rs')
| -rw-r--r-- | mumd/src/state/channel.rs | 13 |
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, + ) } } |
