Skip to content

Commit c8d1d1a

Browse files
committed
chore: format
1 parent 1b05ead commit c8d1d1a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,7 @@ async fn connect(lua: Lua, params: Value) -> Result<Connection> {
231231

232232
async fn list_kernels(lua: Lua, _: Value) -> Result<Value> {
233233
let handle = TOKIO.handle();
234-
let res = handle
235-
.spawn(async move {
236-
list_kernelspecs().await
237-
})
238-
.await;
234+
let res = handle.spawn(async move { list_kernelspecs().await }).await;
239235

240236
#[allow(clippy::expect_used)]
241237
return lua.to_value(&res.expect("Tokio JoinError"));

0 commit comments

Comments
 (0)