Skip to content

Commit 7ee33d1

Browse files
committed
cargo fmt
1 parent bc33770 commit 7ee33d1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/parse_datetime.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,19 @@ mod tests {
234234
}
235235
}
236236
}
237-
237+
238238
/// Used to test example code presented in the README.
239239
mod readme_test {
240240
use crate::parse_datetime::from_str;
241-
use chrono::{TimeZone, Local};
241+
use chrono::{Local, TimeZone};
242242

243243
#[test]
244244
fn test_readme_code() {
245245
let dt = from_str("2021-02-14 06:37:47");
246-
assert_eq!(dt.unwrap(), Local.with_ymd_and_hms(2021, 2, 14, 6, 37, 47).unwrap());
246+
assert_eq!(
247+
dt.unwrap(),
248+
Local.with_ymd_and_hms(2021, 2, 14, 6, 37, 47).unwrap()
249+
);
247250
}
248-
249251
}
250252
}

0 commit comments

Comments
 (0)