diff --git a/frontend/src-tauri/Cargo.lock b/frontend/src-tauri/Cargo.lock index efd5c2b6..f9b52bdd 100644 --- a/frontend/src-tauri/Cargo.lock +++ b/frontend/src-tauri/Cargo.lock @@ -2671,9 +2671,9 @@ dependencies = [ [[package]] name = "maple-proxy" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aec3c41ec9138b2015a1bcb853ed46cdea87a7f29719d193b38ded287cfbadc9" +checksum = "13b9806d0af3916b0fe217fefb165dd80b4c9cdabf0d8885927b42abdcd99fa4" dependencies = [ "anyhow", "async-stream", @@ -3296,9 +3296,9 @@ dependencies = [ [[package]] name = "opensecret" -version = "0.2.3" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96e2b23865f980073312a3c7662f9b9099eaeafec762d2ef958e098493770203" +checksum = "68faccec2c0b03eefcc94985c01730d1f50b5ff98684c1afec367ba8301b144c" dependencies = [ "anyhow", "async-trait", diff --git a/frontend/src-tauri/Cargo.toml b/frontend/src-tauri/Cargo.toml index 7cf2d493..6379a147 100644 --- a/frontend/src-tauri/Cargo.toml +++ b/frontend/src-tauri/Cargo.toml @@ -32,7 +32,7 @@ tauri-plugin-os = "2.3.2" tauri-plugin-sign-in-with-apple = "1.0.2" tokio = { version = "1.0", features = ["net", "sync", "rt-multi-thread", "macros", "time"] } once_cell = "1.18.0" -maple-proxy = "0.1.4" +maple-proxy = "0.1.5" tauri-plugin-fs = "2.4.4" anyhow = "1.0" axum = "0.8" diff --git a/frontend/src-tauri/src/lib.rs b/frontend/src-tauri/src/lib.rs index 5b9c3cfa..966d4501 100644 --- a/frontend/src-tauri/src/lib.rs +++ b/frontend/src-tauri/src/lib.rs @@ -1,6 +1,5 @@ -use tauri::{Emitter, Manager}; +use tauri::Emitter; use tauri_plugin_deep_link::DeepLinkExt; -use tauri_plugin_opener; mod pdf_extractor; mod proxy; @@ -67,7 +66,7 @@ pub fn run() { app.deep_link().on_open_url(move |event| { if let Some(url) = event.urls().first() { // Use the cloned app_handle - handle_deep_link_event(&url.to_string(), &app_handle); + handle_deep_link_event(url.as_ref(), &app_handle); } }); // Optionally register the scheme at runtime @@ -263,7 +262,7 @@ pub fn run() { // but the handler for incoming URLs still works app.deep_link().on_open_url(move |event| { if let Some(url) = event.urls().first() { - handle_deep_link_event(&url.to_string(), &app_handle); + handle_deep_link_event(url.as_ref(), &app_handle); } });