Skip to content

Commit

Permalink
Resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KuabeM committed Jan 14, 2024
1 parent 4fb37c1 commit 2a14ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ mod tests {
.unwrap()
.and_hms_opt(14, 19, 21)
.unwrap();
let utc_dt = DateTime::from_utc(naive, chrono::Utc);
let utc_dt = DateTime::from_naive_utc_and_offset(naive, chrono::Utc);
let dur: DurationDef = Duration::seconds(10).into();
let input = r#"{"start":null,"breaking":null,"breaks":[],"account":{""#.to_string()
+ &utc_dt.to_rfc3339_opts(SecondsFormat::Secs, true)
Expand All @@ -529,7 +529,7 @@ mod tests {
.unwrap()
.and_hms_opt(14, 19, 21)
.unwrap();
let utc_dt = DateTime::from_utc(naive, chrono::Utc);
let utc_dt = DateTime::from_naive_utc_and_offset(naive, chrono::Utc);
let dur = Duration::seconds(10).into();
balance.insert(utc_dt, dur);

Expand Down

0 comments on commit 2a14ca7

Please sign in to comment.