Remove rustfmt.toml

This commit is contained in:
Taiki Endo 2022-01-09 01:15:08 +09:00
parent 953620d52b
commit 404c7bcc0a
2 changed files with 2 additions and 5 deletions

View File

@ -1 +0,0 @@
version = 'Two'

View File

@ -40,10 +40,8 @@ pub fn spawn<T: Send + 'static>(future: impl Future<Output = T> + Send + 'static
for n in 1..=num_threads {
thread::Builder::new()
.name(format!("smol-{}", n))
.spawn(|| {
loop {
catch_unwind(|| block_on(GLOBAL.run(future::pending::<()>()))).ok();
}
.spawn(|| loop {
catch_unwind(|| block_on(GLOBAL.run(future::pending::<()>()))).ok();
})
.expect("cannot spawn executor thread");
}