Use system rustfmt instead of fixed binary (#2701)

This commit is contained in:
Ryan Dahl 2019-07-31 17:11:37 -04:00 committed by GitHub
parent b3541c38f5
commit 3971dcfe10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 252 additions and 235 deletions

View file

@ -126,7 +126,8 @@ mod tests {
argv,
op_selector_std,
Progress::new(),
).unwrap();
)
.unwrap();
let state_ = state.clone();
tokio_util::run(lazy(move || {
let mut worker =
@ -154,7 +155,8 @@ mod tests {
argv,
op_selector_std,
Progress::new(),
).unwrap();
)
.unwrap();
let state_ = state.clone();
tokio_util::run(lazy(move || {
let mut worker =
@ -283,7 +285,8 @@ mod tests {
println!("workers.rs after resource close");
r.unwrap();
Ok(())
}).shared();
})
.shared();
let worker_future_ = worker_future.clone();
tokio::spawn(lazy(move || worker_future_.then(|_| Ok(()))));