diff --git a/rustfmt.toml b/rustfmt.toml deleted file mode 100644 index 3d1411f..0000000 --- a/rustfmt.toml +++ /dev/null @@ -1 +0,0 @@ -version = 'Two' diff --git a/src/spawn.rs b/src/spawn.rs index 8ce491a..e01d0d0 100644 --- a/src/spawn.rs +++ b/src/spawn.rs @@ -40,10 +40,8 @@ pub fn spawn(future: impl Future + 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"); }