Skip to content

Commit

Permalink
Undo semver-hack
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Feb 11, 2025
1 parent 918a1d5 commit f0580df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/tauri-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,8 @@ pub trait Runtime<T: UserEvent>: Debug + Sized + 'static {
fn run_iteration<F: FnMut(RunEvent<T>) + '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<F: FnMut(RunEvent<T>) + 'static>(&mut self, callback: F) -> i32 {
unimplemented!("Runtime::run_return is not implemented")
}
fn run_return<F: FnMut(RunEvent<T>) + 'static>(&mut self, callback: F) -> i32;

/// Run the webview runtime.
fn run<F: FnMut(RunEvent<T>) + 'static>(self, callback: F);
Expand Down

0 comments on commit f0580df

Please sign in to comment.