aboutsummaryrefslogtreecommitdiffstats
path: root/components/hyper_serde/tests/supported.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/hyper_serde/tests/supported.rs')
-rw-r--r--components/hyper_serde/tests/supported.rs5
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>();
}