update deps

and switch to new channels  in async-std@1.8
This commit is contained in:
dignifiedquire
2020-12-12 23:17:02 +01:00
committed by Floris Bruynooghe
parent 93bd9422e7
commit b3fe74e0f0
7 changed files with 646 additions and 524 deletions

View File

@@ -2,8 +2,8 @@
use std::ops::Deref;
use async_std::channel::{bounded as channel, Receiver, Sender, TrySendError};
use async_std::path::PathBuf;
use async_std::sync::{channel, Receiver, Sender, TrySendError};
use strum::EnumProperty;
use crate::chat::ChatId;
@@ -35,7 +35,7 @@ impl Events {
// try again
self.emit(event);
}
Err(TrySendError::Disconnected(_)) => {
Err(TrySendError::Closed(_)) => {
unreachable!("unable to emit event, channel disconnected");
}
}