Skip to content

Commit

Permalink
fix clippy yaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Oct 16, 2023
1 parent ca6fdab commit effa36b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Invoke {
continue;
}
let url = request.url().to_string();
let pieces = url.split("/").collect::<Vec<_>>();
let pieces = url.split('/').collect::<Vec<_>>();
let window_label = pieces[1];

if let Some(window) = app.get_window(window_label) {
Expand All @@ -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 {
Expand Down

0 comments on commit effa36b

Please sign in to comment.