mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
examples: Use tracing macros instead of println!
This allows the examples to work a bit better in WASM and on iOS.
This commit is contained in:
@@ -66,6 +66,5 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
#[cfg(not(x11_platform))]
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
println!("This example is only supported on X11 platforms.");
|
||||
Ok(())
|
||||
panic!("This example is only supported on X11 platforms.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user