Browse Source

cargo fmt

master
Alex Mikhalev 4 years ago
parent
commit
a30eaac603
  1. 4
      src/mpsc/sender.rs

4
src/mpsc/sender.rs

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

Loading…
Cancel
Save