From 18361dabd3465aa3b64804dfb662bbc20d22a74e Mon Sep 17 00:00:00 2001 From: GeneFerneau <80422284+GeneFerneau@users.noreply.github.com> Date: Wed, 19 May 2021 18:39:05 +0000 Subject: [PATCH] Fix deprecated use of RPC trait object without dyn (#615) Adds dyn keyword to OwnerRpc and ForeignRpc trait objects Fixes deprecation warning --- controller/src/controller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/src/controller.rs b/controller/src/controller.rs index c61c7345..611d774e 100644 --- a/controller/src/controller.rs +++ b/controller/src/controller.rs @@ -572,7 +572,7 @@ where is_init_secure_api = OwnerV3Helpers::is_init_secure_api(&val); // also need to intercept open/close wallet requests let is_open_wallet = OwnerV3Helpers::is_open_wallet(&val); - match OwnerRpc::handle_request(&*api, val) { + match ::handle_request(&*api, val) { MaybeReply::Reply(mut r) => { let (_was_error, unencrypted_intercept) = OwnerV3Helpers::check_error_response(&r.clone()); @@ -691,7 +691,7 @@ where api: Foreign<'static, L, C, K>, ) -> Result { let val: serde_json::Value = parse_body(req).await?; - match ForeignRpc::handle_request(&api, val) { + match ::handle_request(&api, val) { MaybeReply::Reply(r) => Ok(r), MaybeReply::DontReply => { // Since it's http, we need to return something. We return [] because jsonrpc