From ee2e621d5b19de08becd33c13520f8826407cf84 Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Sat, 17 Oct 2020 15:00:27 +0200 Subject: change data in response to channel-list to a tree --- mumlib/src/command.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mumlib/src/command.rs') 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, + channels: Channel, }, Status { username: Option, -- cgit v1.2.1