Skip to content

Commit

Permalink
update package edition to 2018 for the log crate's MSRV check.
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Mar 28, 2023
1 parent f356660 commit c421ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "structured-logger"
version = "0.4.1"
edition = "2021"
edition = "2018"
description = """
A logging implementation for the log crate that logs structured values either synchronous or asynchronous, as JSON, CBOR, or any other format, into a file, stderr, stdout, or any other destination.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl Builder {
/// you want to handle the error yourself.
pub fn init(self) {
self.try_init()
.unwrap_or_else(|err| panic!("failed to initialize the logger: {err}"));
.unwrap_or_else(|err| panic!("failed to initialize the logger: {}", err));
}

/// Try to initialize the logger.
Expand Down

0 comments on commit c421ecc

Please sign in to comment.