From 7359295325b3377b01520cdd0c7c30a51036df8d Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 6 Sep 2023 09:48:30 -0300 Subject: [PATCH] lint --- core/tauri/src/app.rs | 3 ++- core/tauri/src/protocol/tauri.rs | 4 ++-- examples/api/src-tauri/Cargo.lock | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs index e61d6975631d..6dc113c22798 100644 --- a/core/tauri/src/app.rs +++ b/core/tauri/src/app.rs @@ -1577,7 +1577,8 @@ impl Builder { } } -pub struct UriSchemeResponse(pub(crate) Box>) + Send>); +pub(crate) type UriSchemeResponder = Box>) + Send>; +pub struct UriSchemeResponse(pub(crate) UriSchemeResponder); impl UriSchemeResponse { /// Resolves the request with the given response. diff --git a/core/tauri/src/protocol/tauri.rs b/core/tauri/src/protocol/tauri.rs index e9b54619c822..ed3cddcb79c8 100644 --- a/core/tauri/src/protocol/tauri.rs +++ b/core/tauri/src/protocol/tauri.rs @@ -51,7 +51,7 @@ pub fn get( request, &manager, &window_origin, - web_resource_request_handler.as_ref(), + web_resource_request_handler.as_deref(), #[cfg(all(dev, mobile))] (&url, &response_cache), ) { @@ -71,7 +71,7 @@ fn get_response( request: Request>, manager: &WindowManager, window_origin: &str, - web_resource_request_handler: Option<&Box>, + web_resource_request_handler: Option<&WebResourceRequestHandler>, #[cfg(all(dev, mobile))] (url, response_cache): ( &str, &Arc>>, diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 2d6b9ac3d3d6..e2a59fe25d8c 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -4531,7 +4531,7 @@ dependencies = [ [[package]] name = "wry" version = "0.31.0" -source = "git+https://github.com/tauri-apps/wry?branch=refactor/custom-protocol-response#96349651f29fd9d484be7e0a9248d9b85e93e839" +source = "git+https://github.com/tauri-apps/wry?branch=refactor/custom-protocol-response#281525bf2ed7f3ed0521f684e6967d3fd7ec5f62" dependencies = [ "base64", "block",