mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
clippy
This commit is contained in:
@ -62,13 +62,14 @@ async fn rpc_select(
|
||||
if params.len() != 1 || !params[0].is_u64() {
|
||||
return Err(convention::ErrorData::std(-32602));
|
||||
}
|
||||
match app_state
|
||||
|
||||
let fut = app_state
|
||||
.network
|
||||
.read()
|
||||
.unwrap()
|
||||
.wait(params[0].as_u64().unwrap())
|
||||
.await
|
||||
{
|
||||
.wait(params[0].as_u64().unwrap());
|
||||
|
||||
match fut.await {
|
||||
Ok(ok) => Ok(Value::from(ok)),
|
||||
Err(e) => Err(convention::ErrorData::new(500, &format!("{e:?}")[..])),
|
||||
}
|
||||
|
Reference in New Issue
Block a user