Skip to content

Commit

Permalink
fix(dtt): 💄 fix formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Sep 2, 2024
1 parent 356ec10 commit 0dca150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_readme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ mod tests {
#[test]
fn example_3() {
let date_str = "2022-01-01T12:00:00+01:00";
let mut result: Result<DateTime, dtt::error::DateTimeError> = DateTime::from_str(date_str);
let mut result: Result<DateTime, dtt::error::DateTimeError> =
DateTime::from_str(date_str);

// Assert the parsed components of the `DateTime` object
assert_eq!(result.as_mut().unwrap().year(), 2022);
Expand Down

0 comments on commit 0dca150

Please sign in to comment.