diff options
author | Taym Haddadi <haddadi.taym@gmail.com> | 2024-01-17 15:18:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 14:18:20 +0000 |
commit | 580062228bb083ccdc2144a43491bc4f916c57ad (patch) | |
tree | b2588905149c5f9c925f763c3d70b1e55271bc04 /components/hyper_serde/tests/supported.rs | |
parent | d86e713a9cb5be2555d63bd477d47d440fa8c832 (diff) | |
download | servo-580062228bb083ccdc2144a43491bc4f916c57ad.tar.gz servo-580062228bb083ccdc2144a43491bc4f916c57ad.zip |
Replace time with std::time in components/net (#31079)
* Replace time with std::time in components/net
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Fix cookie::test_sort_order test
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Diffstat (limited to 'components/hyper_serde/tests/supported.rs')
-rw-r--r-- | components/hyper_serde/tests/supported.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/hyper_serde/tests/supported.rs b/components/hyper_serde/tests/supported.rs index 54480903c7e..4eddd69adef 100644 --- a/components/hyper_serde/tests/supported.rs +++ b/components/hyper_serde/tests/supported.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +use std::time::SystemTime; + use cookie::Cookie; use headers::ContentType; use http::header::HeaderMap; @@ -15,7 +17,6 @@ use hyper::{Method, StatusCode, Uri}; use hyper_serde::{De, Ser, Serde}; use mime::Mime; use serde::{Deserialize, Serialize}; -use time::Tm; fn is_supported<T>() where @@ -33,6 +34,6 @@ fn supported() { is_supported::<Method>(); is_supported::<Mime>(); is_supported::<StatusCode>(); - is_supported::<Tm>(); + is_supported::<SystemTime>(); is_supported::<Uri>(); } |