From afdf3e799a7610444208c9568a7cf7531d0c2ef3 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 10 Nov 2021 23:56:52 -0300 Subject: Add `env_logger` to `game_of_life` --- examples/game_of_life/Cargo.toml | 1 + examples/game_of_life/src/main.rs | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/game_of_life/Cargo.toml b/examples/game_of_life/Cargo.toml index ffd2f19e..9ee307ac 100644 --- a/examples/game_of_life/Cargo.toml +++ b/examples/game_of_life/Cargo.toml @@ -10,3 +10,4 @@ iced = { path = "../..", features = ["canvas", "tokio", "debug"] } tokio = { version = "1.0", features = ["sync"] } itertools = "0.9" rustc-hash = "1.1" +env_logger = "0.9" diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index 50112618..dcf1ced5 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -18,6 +18,10 @@ use preset::Preset; use std::time::{Duration, Instant}; pub fn main() -> iced::Result { + env_logger::builder() + .format_timestamp(None) + .init(); + GameOfLife::run(Settings { antialiasing: true, window: window::Settings { -- cgit