From efeec7f72777640fd8b0f361bb075dd0ebf55a0e Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Thu, 21 Oct 2021 16:15:47 -0700 Subject: [PATCH] Fix `minimal-fltk` example release builds with Rust 1.56.0 (#216) - See https://github.com/rust-lang/rust/issues/88576 --- examples/minimal-fltk/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/minimal-fltk/src/main.rs b/examples/minimal-fltk/src/main.rs index 701ee07..128ba48 100644 --- a/examples/minimal-fltk/src/main.rs +++ b/examples/minimal-fltk/src/main.rs @@ -19,7 +19,9 @@ struct World { } fn main() -> Result<(), Error> { + #[cfg(debug_assertions)] env_logger::init(); + let app = app::App::default(); let mut win = Window::default() .with_size(WIDTH as i32, HEIGHT as i32)