up
This commit is contained in:
@@ -8,3 +8,4 @@ edition = "2018"
|
||||
hyper = { version = "0.14", features = ["http1", "http2", "client", "server", "tcp"] }
|
||||
http = "0.2"
|
||||
serde_json = "1.0"
|
||||
async-channel = "1.6"
|
||||
|
||||
@@ -59,3 +59,11 @@ impl From<serde_json::Error> for Error {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<async_channel::RecvError> for Error {
|
||||
fn from (k: async_channel::RecvError) -> Self {
|
||||
Self {
|
||||
msg: k.to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user