From e856adc72c0be782df025da57cd84dbc5cacb179 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Fri, 16 Feb 2024 17:27:19 +0200 Subject: [PATCH] fix(shell): export `open` module (#939) closes #934 --- .changes/shell-open-re-export.md | 5 +++++ plugins/shell/src/lib.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/shell-open-re-export.md diff --git a/.changes/shell-open-re-export.md b/.changes/shell-open-re-export.md new file mode 100644 index 00000000..d5540f55 --- /dev/null +++ b/.changes/shell-open-re-export.md @@ -0,0 +1,5 @@ +--- +"shell": "patch" +--- + +Export `open` module. diff --git a/plugins/shell/src/lib.rs b/plugins/shell/src/lib.rs index 8b32b7ec..b01f3e30 100644 --- a/plugins/shell/src/lib.rs +++ b/plugins/shell/src/lib.rs @@ -28,7 +28,7 @@ use tauri::{ mod commands; mod config; mod error; -mod open; +pub mod open; pub mod process; mod scope; mod scope_entry; @@ -60,7 +60,7 @@ impl Shell { /// Open a (url) path with a default or specific browser opening program. /// - /// See [`crate::api::shell::open`] for how it handles security-related measures. + /// See [`crate::open::open`] for how it handles security-related measures. pub fn open(&self, path: impl Into, with: Option) -> Result<()> { open::open(&self.open_scope, path.into(), with).map_err(Into::into) }