From a1fed6bbb0c0ec05a6c37028b47f6c80061d2c02 Mon Sep 17 00:00:00 2001 From: Stuart Bruce Date: Thu, 30 Jan 2025 12:03:25 +0000 Subject: [PATCH] Remove test type aliases --- instant-xml/tests/chrono.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/instant-xml/tests/chrono.rs b/instant-xml/tests/chrono.rs index 09a02df..a26730d 100644 --- a/instant-xml/tests/chrono.rs +++ b/instant-xml/tests/chrono.rs @@ -10,27 +10,23 @@ struct Test { dt: T, } -type TestUtcDateTime = Test>; - #[test] fn datetime() { let dt = Utc.with_ymd_and_hms(2022, 11, 21, 21, 17, 23).unwrap(); let test = Test { dt }; let xml = "
2022-11-21T21:17:23+00:00
"; assert_eq!(to_string(&test).unwrap(), xml); - assert_eq!(from_str::(xml).unwrap(), test); + assert_eq!(from_str::>>(xml).unwrap(), test); let zulu = xml.replace("+00:00", "Z"); - assert_eq!(from_str::(&zulu).unwrap(), test); + assert_eq!(from_str::>>(&zulu).unwrap(), test); } -type TestNaiveDateTime = Test; - #[test] fn naive_datetime() { let dt = NaiveDateTime::parse_from_str("2022-11-21T21:17:23", "%Y-%m-%dT%H:%M:%S").unwrap(); let test = Test { dt }; let xml = "
2022-11-21T21:17:23
"; assert_eq!(to_string(&test).unwrap(), xml); - assert_eq!(from_str::(xml).unwrap(), test); + assert_eq!(from_str::>(xml).unwrap(), test); }