Make rustfmt happy

integrate-threads-example
Florian Gilcher 5 years ago
parent adeabe51d2
commit 67fd54c138
No known key found for this signature in database
GPG Key ID: E7B51D33F8EBF61B

@ -2,8 +2,8 @@
use async_std::task;
use std::{thread,time};
use futures::channel::oneshot;
use std::{thread, time};
struct AsyncHandle<T> {
handle: thread::JoinHandle<T>,
@ -22,8 +22,7 @@ impl<T> AsyncHandle<T> {
}
}
fn spawn<F,T>(f: F) -> AsyncHandle<T>
fn spawn<F, T>(f: F) -> AsyncHandle<T>
where
F: FnOnce() -> T,
F: Send + 'static,
@ -39,7 +38,7 @@ where
AsyncHandle {
handle: thread_handle,
notifier: receiver
notifier: receiver,
}
}

Loading…
Cancel
Save