Skip to content

Commit

Permalink
remove single use var
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Nov 4, 2023
1 parent 3ecded7 commit 0127af0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/types/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ mod tests {
const USEC_PER_SEC: i64 = 1_000_000;
test_buf.put_i64((1_698_641_816 - TIME_SEC_CONVERSION) * USEC_PER_SEC);
let got = TZTime::from_sql(&test_pg_type, &mut test_buf).unwrap();
let want_date = "2023-10-30T04:56:56Z";
let want = TZTime(
DateTime::parse_from_rfc3339(want_date)
DateTime::parse_from_rfc3339("2023-10-30T04:56:56Z")
.unwrap()
.with_timezone(&Utc),
);
Expand Down

0 comments on commit 0127af0

Please sign in to comment.