diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-17 15:00:27 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-17 15:00:27 +0200 |
| commit | ee2e621d5b19de08becd33c13520f8826407cf84 (patch) | |
| tree | 3c6af50d9c81cd0ef161876d4032b364e799d082 /mumlib/src/command.rs | |
| parent | e2f5c15e17d0ddcde88830194410c387793c045f (diff) | |
| download | mum-ee2e621d5b19de08becd33c13520f8826407cf84.tar.gz | |
change data in response to channel-list to a tree
Diffstat (limited to 'mumlib/src/command.rs')
| -rw-r--r-- | mumlib/src/command.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index b2ac321..d273ee9 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -1,7 +1,6 @@ use crate::state::{Channel, Server}; use serde::{Deserialize, Serialize}; -use std::collections::HashMap; #[derive(Clone, Debug, Deserialize, Serialize)] pub enum Command { @@ -22,7 +21,7 @@ pub enum Command { #[derive(Debug, Deserialize, Serialize)] pub enum CommandResponse { ChannelList { - channels: HashMap<u32, Channel>, + channels: Channel, }, Status { username: Option<String>, |
