From 9a3c7baa1c47090d78d142039b8c75a3ccd7905d Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Thu, 21 Oct 2021 15:55:18 -0700 Subject: [PATCH] Fix `minimal-fltk` example release builds with Rust 1.56.0 - 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 701ee070..128ba480 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)