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 From b10d20a20496eb9287975fc9fd9b688d59896031 Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Sat, 17 Oct 2020 16:16:23 +0200 Subject: change status data transfer struct --- mumlib/src/command.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'mumlib/src/command.rs') diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index d273ee9..a216445 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -24,7 +24,6 @@ pub enum CommandResponse { channels: Channel, }, Status { - username: Option, server_state: Server, }, } -- cgit v1.2.1 From 821107122299eebde5da1223ea328f63782ceac9 Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Sat, 17 Oct 2020 20:44:54 +0200 Subject: cargo fmt --- mumlib/src/command.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mumlib/src/command.rs') diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index a216445..e8f4a4d 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -20,10 +20,6 @@ pub enum Command { #[derive(Debug, Deserialize, Serialize)] pub enum CommandResponse { - ChannelList { - channels: Channel, - }, - Status { - server_state: Server, - }, + ChannelList { channels: Channel }, + Status { server_state: Server }, } -- cgit v1.2.1