Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 06ccb07

Browse files
committed
Add an env_logger dependency
1 parent 43cc63e commit 06ccb07

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cargo-fix/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ failure = "0.1"
1717
rustfix = { path = "..", version = "0.2" }
1818
serde_json = "1"
1919
log = "0.4"
20+
env_logger = { version = "0.5", default-features = false }
2021

2122
[dev-dependencies]
2223
difference = "2"

cargo-fix/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ extern crate rustfix;
44
extern crate serde_json;
55
#[macro_use]
66
extern crate log;
7+
extern crate env_logger;
78

89
use std::collections::{HashSet, HashMap};
910
use std::env;
@@ -19,6 +20,7 @@ use failure::{Error, ResultExt};
1920
mod lock;
2021

2122
fn main() {
23+
env_logger::init();
2224
let result = if env::var("__CARGO_FIX_NOW_RUSTC").is_ok() {
2325
cargo_fix_rustc()
2426
} else {

0 commit comments

Comments
 (0)