Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Dependencies updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Dec 28, 2017
1 parent 1b10bf6 commit 35492cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ name = "svgcleaner"
path = "src/main.rs"

[dependencies]
log = "0.3"
fern = "0.4"
log = "0.4"
fern = "0.5"

[dependencies.svgdom]
# latest
Expand Down
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ macro_rules! try_msg {
fn main() {
fern::Dispatch::new()
.format(log_format)
.level(log::LogLevelFilter::Warn)
.level(log::LevelFilter::Warn)
.chain(std::io::stderr())
.apply().unwrap();

Expand Down Expand Up @@ -179,15 +179,15 @@ fn main() {
}
}

fn log_format(out: fern::FormatCallback, message: &fmt::Arguments, record: &log::LogRecord) {
use log::LogLevel;
fn log_format(out: fern::FormatCallback, message: &fmt::Arguments, record: &log::Record) {
use log::Level;

let lvl = match record.level() {
LogLevel::Error => "Error",
LogLevel::Warn => "Warning",
LogLevel::Info => "Info",
LogLevel::Debug => "Debug",
LogLevel::Trace => "Trace",
Level::Error => "Error",
Level::Warn => "Warning",
Level::Info => "Info",
Level::Debug => "Debug",
Level::Trace => "Trace",
};

out.finish(format_args!(
Expand Down

0 comments on commit 35492cb

Please sign in to comment.