diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-17 18:45:51 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-17 18:45:51 +0200 |
| commit | 74a64c249e0371890f4bb03ee8cd17b5059ddc4c (patch) | |
| tree | 2569a3f2537abe543fed02723634d8dcfb39484e | |
| parent | b1c1c227a0f5c171726f16f4f474536a718fd56f (diff) | |
| download | mum-74a64c249e0371890f4bb03ee8cd17b5059ddc4c.tar.gz | |
minor changes
| -rw-r--r-- | mumctl/src/main.rs | 3 | ||||
| -rw-r--r-- | mumd/src/state.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/mumctl/src/main.rs b/mumctl/src/main.rs index 0020c55..2db9ded 100644 --- a/mumctl/src/main.rs +++ b/mumctl/src/main.rs @@ -71,9 +71,8 @@ fn main() { Err(e) => println!("{} {}", "error:".red(), e), } } else if let Some(matches) = matches.subcommand_matches("connect") { - let channel_arg = matches.value_of("channel").unwrap(); err_print!(send_command(Command::ChannelJoin { - channel_identifier: channel_arg.to_string() + channel_identifier: matches.value_of("channel").unwrap().to_string() })); } } else if let Some(_matches) = matches.subcommand_matches("status") { diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 623cfba..62ba865 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -9,7 +9,7 @@ use mumlib::command::{Command, CommandResponse}; use mumlib::state::Server; use std::net::ToSocketAddrs; use tokio::sync::{mpsc, watch}; -use mumlib::error::{Error, ChannelIdentifierError}; +use mumlib::error::{ChannelIdentifierError, Error}; #[derive(Clone, Debug, Eq, PartialEq)] pub enum StatePhase { |
