From effa36be79e3adf650b94c5e9f73cb86bb42c248 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Mon, 16 Oct 2023 13:57:07 +0200 Subject: [PATCH] fix clippy yaaaa --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 740ac43..e3df077 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,7 +55,7 @@ impl Invoke { continue; } let url = request.url().to_string(); - let pieces = url.split("/").collect::>(); + let pieces = url.split('/').collect::>(); let window_label = pieces[1]; if let Some(window) = app.get_window(window_label) { @@ -73,7 +73,7 @@ impl Invoke { } else { unimplemented!() }; - let req_key = payload.callback.0.clone(); + let req_key = payload.callback.0; requests.lock().unwrap().insert(req_key, request); let _ = window.on_message(payload); } else {