forked from mirror/async-std
parent
bfaa9c510c
commit
b768a7bab7
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ async fn client(mut broker: Sender<Event>, stream: TcpStream) -> Result<()> {
|
|||
Some(idx) => (&line[..idx], line[idx + 1 ..].trim()),
|
||||
};
|
||||
let dest: Vec<String> = dest.split(',').map(|name| name.trim().to_string()).collect();
|
||||
let msg: String = msg.trim().to_string();
|
||||
let msg: String = msg.to_string();
|
||||
|
||||
broker.send(Event::Message { // 4
|
||||
from: name.clone(),
|
||||
|
|
Loading…
Reference in a new issue