From f0580df595d51a254cfa838f1f0bdf2594dba185 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 11 Feb 2025 17:52:12 +1100 Subject: [PATCH] Undo semver-hack --- crates/tauri-runtime/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/tauri-runtime/src/lib.rs b/crates/tauri-runtime/src/lib.rs index b1c06f397721..cf3a68c8c1a2 100644 --- a/crates/tauri-runtime/src/lib.rs +++ b/crates/tauri-runtime/src/lib.rs @@ -438,12 +438,8 @@ pub trait Runtime: Debug + Sized + 'static { fn run_iteration) + 'static>(&mut self, callback: F); /// Equivalent to [`Runtime::run`] but returns the exit code instead of exiting the process. - /// - /// Note: This function only has a default impl to avoid a semver-incompatible change. #[cfg(desktop)] - fn run_return) + 'static>(&mut self, callback: F) -> i32 { - unimplemented!("Runtime::run_return is not implemented") - } + fn run_return) + 'static>(&mut self, callback: F) -> i32; /// Run the webview runtime. fn run) + 'static>(self, callback: F);