Skip to content

Commit

Permalink
refactor: make clippy happy
Browse files Browse the repository at this point in the history
Clippy wants inline variables in a `format!`.
  • Loading branch information
erwinvaneijk committed Jan 17, 2025
1 parent 11816ab commit 27bfb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/render/times.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Render for Option<NaiveDateTime> {
let datestamp = if let Ok(timezone_str) = iana_time_zone::get_timezone() {
let timezone: Tz = timezone_str
.parse()
.unwrap_or_else(|_| panic!("The timezone cannot be parsed: {}", timezone_str));
.unwrap_or_else(|_| panic!("The timezone cannot be parsed: {timezone_str}"));
if let Some(time) = self {
let time_offset = timezone.offset_from_utc_datetime(&time).fix();
time_format.format(&DateTime::<FixedOffset>::from_naive_utc_and_offset(
Expand Down

0 comments on commit 27bfb6a

Please sign in to comment.