Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Feb 8, 2023
1 parent b8ada23 commit 1267e8e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions polars/polars-io/src/csv/write_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,17 @@ fn write_anyvalue(
};
match tz {
Some(tz) => match tz.parse::<Tz>() {
Ok(parsed_tz) => write!(f, "{}", parsed_tz.from_utc_datetime(&ndt).format(datetime_format)),
Ok(parsed_tz) => write!(
f,
"{}",
parsed_tz.from_utc_datetime(&ndt).format(datetime_format)
),
Err(_) => match temporal_conversions::parse_offset(tz) {
Ok(parsed_tz) => write!(f, "{}", parsed_tz.from_utc_datetime(&ndt).format(datetime_format)),
Ok(parsed_tz) => write!(
f,
"{}",
parsed_tz.from_utc_datetime(&ndt).format(datetime_format)
),
Err(_) => unreachable!(),
},
},
Expand Down

0 comments on commit 1267e8e

Please sign in to comment.