Skip to content

Commit

Permalink
chore: bump env_logger to 0.11 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc authored Apr 10, 2024
1 parent 47c8020 commit 7efa687
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 37 deletions.
53 changes: 22 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion maa-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ tar = { version = "0.4.40", optional = true }
# Logging support
log = "0.4.20"
[dependencies.env_logger]
version = "0.10.1"
version = "0.11"
default-features = false
features = ["auto-color"]

Expand Down
6 changes: 4 additions & 2 deletions maa-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,11 @@ fn prefixed_format(
) -> std::io::Result<()> {
writeln!(
buf,
"[{} {:<5}] {}",
"[{} {}{:<5}{}] {}",
chrono::Local::now().format("%Y-%m-%d %H:%M:%S"),
buf.default_styled_level(record.level()),
buf.default_level_style(record.level()),
record.level(),
env_logger::fmt::style::Reset,
record.args()
)
}
Expand Down
3 changes: 0 additions & 3 deletions maa-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ runtime = ["libloading"]
libloading = { version = "0.8", optional = true }
serde = { version = "1", optional = true, features = ["derive"] }

[build-dependencies]
directories = "5"

[dev-dependencies]
serde_test = "1"

0 comments on commit 7efa687

Please sign in to comment.