Replace lots of generic code with dedicated mumble-protocol crate
This commit is contained in:
parent
353de4ec2f
commit
443712cb22
10 changed files with 112 additions and 1028 deletions
|
|
@ -8,7 +8,6 @@ pub enum Error {
|
|||
Io(std::io::Error),
|
||||
ServerTls(native_tls::Error),
|
||||
ClientConnection(websocket::result::WebSocketError),
|
||||
Protobuf(protobuf::ProtobufError),
|
||||
Misc(Box<std::error::Error>),
|
||||
}
|
||||
|
||||
|
|
@ -30,12 +29,6 @@ impl From<native_tls::Error> for Error {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<protobuf::ProtobufError> for Error {
|
||||
fn from(e: protobuf::ProtobufError) -> Self {
|
||||
Error::Protobuf(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<tokio::timer::Error> for Error {
|
||||
fn from(e: tokio::timer::Error) -> Self {
|
||||
Error::Misc(Box::new(e))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue