From e8877e272f1fdd2e61950f98544c49a5671b5c6b Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 29 Sep 2022 19:10:25 +0200 Subject: [PATCH] ci: fix bench (#709) --- bench/tests/src/cpu_intensive.rs | 2 +- bench/tests/src/custom_protocol.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/tests/src/cpu_intensive.rs b/bench/tests/src/cpu_intensive.rs index 3e8647e7c..ea147b9a6 100644 --- a/bench/tests/src/cpu_intensive.rs +++ b/bench/tests/src/cpu_intensive.rs @@ -28,7 +28,7 @@ fn main() -> wry::Result<()> { .with_custom_protocol("wry.bench".into(), move |request| { let path = request.uri().to_string(); let requested_asset_path = path.strip_prefix("wry.bench://").unwrap(); - let (data, mimetype) = match requested_asset_path { + let (data, mimetype): (Vec, _) = match requested_asset_path { "/index.css" => ( include_bytes!("static/index.css").to_vec(), "text/css".into(), diff --git a/bench/tests/src/custom_protocol.rs b/bench/tests/src/custom_protocol.rs index 7cc44fbfa..51c325cfe 100644 --- a/bench/tests/src/custom_protocol.rs +++ b/bench/tests/src/custom_protocol.rs @@ -29,7 +29,7 @@ fn main() -> wry::Result<()> { exit(0); } }; - let webview = WebViewBuilder::new(window) + let _webview = WebViewBuilder::new(window) .unwrap() .with_ipc_handler(handler) .with_custom_protocol("wry.bench".into(), move |_request| {