From b21db206d24e931242ca5562c6a199543c2bef0c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 2 Dec 2019 09:50:06 -0700 Subject: [PATCH] chore: Update env_logger --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- src/main.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f42b7d7..dfbc483 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -204,7 +204,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "env_logger" -version = "0.6.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "atty 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", @@ -773,7 +773,7 @@ dependencies = [ "bstr 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "clap-verbosity-flag 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "ignore 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "phf 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -939,7 +939,7 @@ dependencies = [ "checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198" "checksum doc-comment 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "923dea538cea0aa3025e8685b20d6ee21ef99c4f77e954a30febbaac5ec73a97" "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" -"checksum env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3" +"checksum env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" "checksum float-cmp 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "134a8fa843d80a51a5b77d36d42bc2def9edcb0262c914861d08129fd1926600" "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" "checksum getrandom 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "e7db7ca94ed4cd01190ceee0d8a8052f08a247aa1b469a7f68c6a3b71afcf407" diff --git a/Cargo.toml b/Cargo.toml index ecf129a..1ab7b58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ ignore = "0.4" serde = { version = "1.0", features = ["derive"] } toml = "0.4" log = "0.4" -env_logger = "0.6" +env_logger = "0.7" [dev-dependencies] assert_fs = "0.13" diff --git a/src/main.rs b/src/main.rs index 8536da2..540f44c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -356,7 +356,7 @@ fn init_logging(level: Option) { builder.filter(None, level.to_level_filter()); if level == log::LevelFilter::Trace { - builder.default_format_timestamp(false); + builder.format_timestamp_secs(); } else { builder.format(|f, record| { writeln!( @@ -373,7 +373,7 @@ fn init_logging(level: Option) { } fn check_path( - mut walk: ignore::Walk, + walk: ignore::Walk, format: Format, checks: &dyn Checks, parser: &typos::tokens::Parser,