chore: apply rustfmt to all crates (#917)

This commit is contained in:
Carl Lerche
2019-02-21 11:56:15 -08:00
committed by GitHub
parent ab595d0825
commit 80162306e7
253 changed files with 3710 additions and 3407 deletions
+3 -3
View File
@@ -122,7 +122,8 @@ pub struct BlockingError {
/// }
/// ```
pub fn blocking<F, T>(f: F) -> Poll<T, BlockingError>
where F: FnOnce() -> T,
where
F: FnOnce() -> T,
{
let res = Worker::with_current(|worker| {
let worker = match worker {
@@ -148,8 +149,7 @@ where F: FnOnce() -> T,
// back ownership of the worker if the worker handoff didn't complete yet.
Worker::with_current(|worker| {
// Worker must be set since it was above.
worker.unwrap()
.transition_from_blocking();
worker.unwrap().transition_from_blocking();
});
// Return the result