Replace deprecated simple_logger initialization

This commit is contained in:
Logan Magee 2020-09-09 17:58:30 -08:00 committed by GitHub
parent c66489dbb1
commit e4754999b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 47 additions and 21 deletions

View file

@ -10,6 +10,8 @@
))]
fn main() {
use std::{thread::sleep, time::Duration};
use simple_logger::SimpleLogger;
use winit::{
event::{Event, WindowEvent},
event_loop::{ControlFlow, EventLoop},
@ -18,7 +20,7 @@ fn main() {
};
let mut event_loop = EventLoop::new();
simple_logger::init().unwrap();
SimpleLogger::new().init().unwrap();
let _window = WindowBuilder::new()
.with_title("A fantastic window!")
.build(&event_loop)