Skip to content

Commit e48e8c3

Browse files
Make everything cfg(desktop)
1 parent e04ff09 commit e48e8c3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/tauri-runtime-wry/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,6 +2830,7 @@ impl<T: UserEvent> Runtime<T> for Wry<T> {
28302830
});
28312831
}
28322832

2833+
#[cfg(desktop)]
28332834
fn run_return<F: FnMut(RunEvent<T>) + 'static>(mut self, mut callback: F) -> i32 {
28342835
use tao::platform::run_return::EventLoopExtRunReturn;
28352836

crates/tauri/src/test/mock_runtime.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ impl<T: UserEvent> Runtime<T> for MockRuntime {
11881188
))]
11891189
fn run_iteration<F: FnMut(RunEvent<T>)>(&mut self, callback: F) {}
11901190

1191+
#[cfg(desktop)]
11911192
fn run_return<F: FnMut(RunEvent<T>) + 'static>(self, mut callback: F) -> i32 {
11921193
self.run(callback);
11931194

0 commit comments

Comments
 (0)