Skip to content

Commit dac2e13

Browse files
committed
chore: make clippy happy
1 parent 3b0c21f commit dac2e13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ impl UserData for Connection {
7575
}
7676
}
7777

78+
// 7 is the max, we have 9 but dont use 3 of them
79+
#[allow(clippy::too_many_arguments)]
7880
async fn connection_handler(
7981
_out_pipe_r: Receiver,
8082
mut out_pipe_w: Sender,
@@ -231,12 +233,12 @@ async fn list_kernels(lua: Lua, _: Value) -> Result<Value> {
231233
let handle = TOKIO.handle();
232234
let res = handle
233235
.spawn(async move {
234-
return list_kernelspecs().await;
236+
list_kernelspecs().await;
235237
})
236238
.await;
237239

238240
#[allow(clippy::expect_used)]
239-
return Ok(lua.to_value(&res.expect("Tokio JoinError"))?);
241+
return lua.to_value(&res.expect("Tokio JoinError"));
240242
}
241243

242244
#[mlua::lua_module]

0 commit comments

Comments
 (0)