chore: format code and enable rustfmt CI task (#1212)

This commit is contained in:
Carl Lerche
2019-06-27 00:05:01 -07:00
committed by GitHub
parent 1f47ed3dcc
commit ed4d4a5353
22 changed files with 94 additions and 60 deletions
+1 -2
View File
@@ -72,7 +72,6 @@ pub struct Timeout<T> {
delay: Delay,
}
/// Error returned by `Timeout`.
#[derive(Debug)]
pub struct Elapsed(());
@@ -170,7 +169,7 @@ where
unsafe {
match self.map_unchecked_mut(|me| &mut me.delay).poll(cx) {
Poll::Ready(()) => Poll::Ready(Err(Elapsed(()))),
Poll::Pending => Poll::Pending
Poll::Pending => Poll::Pending,
}
}
}