From a8d2bad80ea9016841abc02a2728dccb3a0bbff8 Mon Sep 17 00:00:00 2001 From: Zhen Lu Date: Fri, 27 Oct 2023 16:25:33 -0700 Subject: [PATCH] Make clippy happy --- examples/uma-demo/src/main.rs | 1 + examples/uma-demo/src/vasp.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/uma-demo/src/main.rs b/examples/uma-demo/src/main.rs index a29595b..a3de16f 100644 --- a/examples/uma-demo/src/main.rs +++ b/examples/uma-demo/src/main.rs @@ -30,6 +30,7 @@ struct PayReqParam { } #[get("/api/umapayreq/{callback_uuid}")] +#[warn(clippy::await_holding_lock)] async fn client_payreq( vasp: web::Data>>>, callback_uuid: web::Path, diff --git a/examples/uma-demo/src/vasp.rs b/examples/uma-demo/src/vasp.rs index 5393c81..60e8f4a 100644 --- a/examples/uma-demo/src/vasp.rs +++ b/examples/uma-demo/src/vasp.rs @@ -306,7 +306,7 @@ impl SendingVASP { &payer_info.identifier, payer_info.name.as_deref(), payer_info.email.as_deref(), - Some(&tr_info), + Some(tr_info), None, uma::kyc_status::KycStatus::KycStatusVerified, &sender_utxos,