cargo fmt

This commit is contained in:
Alex Mikhalev 2021-01-04 13:04:36 -07:00
parent 6e024a07e6
commit a30eaac603

View File

@ -6,7 +6,7 @@ use crate::message::Message;
#[non_exhaustive]
pub enum SenderError {
Closed,
Full
Full,
}
impl<T> From<mpsc::error::SendError<T>> for SenderError {
@ -19,7 +19,7 @@ impl<T> From<mpsc::error::TrySendError<T>> for SenderError {
fn from(err: mpsc::error::TrySendError<T>) -> Self {
match err {
mpsc::error::TrySendError::Full(_) => SenderError::Full,
mpsc::error::TrySendError::Closed(_) => SenderError::Closed
mpsc::error::TrySendError::Closed(_) => SenderError::Closed,
}
}
}