Remove extern crate and log dependency

This commit is contained in:
Héctor Ramón Jiménez 2019-09-16 14:04:33 +02:00
parent 87007c7e32
commit 7bfcf4c0bc
3 changed files with 3 additions and 6 deletions

View file

@ -20,7 +20,6 @@ features = ["winit"]
[dependencies] [dependencies]
stretch = "0.2" stretch = "0.2"
twox-hash = "1.5" twox-hash = "1.5"
log = "0.4.8"
# Enable to obtain conversion traits # Enable to obtain conversion traits
winit = { version = "0.20.0-alpha3", optional = true } winit = { version = "0.20.0-alpha3", optional = true }
@ -29,4 +28,4 @@ winit = { version = "0.20.0-alpha3", optional = true }
# A personal `ggez` fork that introduces a `FontCache` type to measure text # A personal `ggez` fork that introduces a `FontCache` type to measure text
# efficiently and fixes HiDPI issues. # efficiently and fixes HiDPI issues.
ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" } ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" }
env_logger = "0.6.2" env_logger = "0.6"

View file

@ -12,9 +12,9 @@ use ggez::filesystem;
use ggez::graphics; use ggez::graphics;
use ggez::input::mouse; use ggez::input::mouse;
extern crate env_logger;
pub fn main() -> ggez::GameResult { pub fn main() -> ggez::GameResult {
env_logger::init();
let (context, event_loop) = { let (context, event_loop) = {
&mut ggez::ContextBuilder::new("iced", "ggez") &mut ggez::ContextBuilder::new("iced", "ggez")
.window_mode(ggez::conf::WindowMode { .window_mode(ggez::conf::WindowMode {
@ -35,7 +35,6 @@ pub fn main() -> ggez::GameResult {
true, true,
); );
env_logger::init();
let state = &mut Game::new(context)?; let state = &mut Game::new(context)?;
event::run(context, event_loop, state) event::run(context, event_loop, state)

View file

@ -196,7 +196,6 @@
#![deny(unused_results)] #![deny(unused_results)]
#![deny(unsafe_code)] #![deny(unsafe_code)]
#![deny(rust_2018_idioms)] #![deny(rust_2018_idioms)]
#[macro_use] extern crate log;
pub mod input; pub mod input;
pub mod renderer; pub mod renderer;
pub mod widget; pub mod widget;