Skip to content

Commit 37fbed1

Browse files
committed
fix(examples): run_return is available on all platforms but iOS
1 parent f4a1d49 commit 37fbed1

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

examples/window_run_return.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
// Limit this example to only compatible platforms.
6-
#[cfg(any(target_os = "windows", target_os = "macos",))]
6+
#[cfg(not(target_os = "ios"))]
77
#[allow(clippy::single_match)]
88
fn main() {
99
use std::{thread::sleep, time::Duration};
@@ -53,15 +53,7 @@ fn main() {
5353
}
5454
}
5555

56-
#[cfg(any(
57-
target_os = "ios",
58-
target_os = "android",
59-
target_os = "linux",
60-
target_os = "dragonfly",
61-
target_os = "freebsd",
62-
target_os = "netbsd",
63-
target_os = "openbsd"
64-
))]
56+
#[cfg(target_os = "ios")]
6557
fn main() {
6658
println!("This platform doesn't support run_return.");
6759
}

0 commit comments

Comments
 (0)