We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b0c21f commit dac2e13Copy full SHA for dac2e13
src/lib.rs
@@ -75,6 +75,8 @@ impl UserData for Connection {
75
}
76
77
78
+// 7 is the max, we have 9 but dont use 3 of them
79
+#[allow(clippy::too_many_arguments)]
80
async fn connection_handler(
81
_out_pipe_r: Receiver,
82
mut out_pipe_w: Sender,
@@ -231,12 +233,12 @@ async fn list_kernels(lua: Lua, _: Value) -> Result<Value> {
231
233
let handle = TOKIO.handle();
232
234
let res = handle
235
.spawn(async move {
- return list_kernelspecs().await;
236
+ list_kernelspecs().await;
237
})
238
.await;
239
240
#[allow(clippy::expect_used)]
- return Ok(lua.to_value(&res.expect("Tokio JoinError"))?);
241
+ return lua.to_value(&res.expect("Tokio JoinError"));
242
243
244
#[mlua::lua_module]
0 commit comments