mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
net: Stop using both versions of the time
crate in the cookie code (#33260)
`std::time` is good enough for us here. `cookie` is using `time 0.3`, but Servo can convert to standard library types when getting data from `cookie`. This reduces our direct dependencies and removes more use of the very old `time 0.1` series. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
1e9344cb5c
commit
6f333a8e29
9 changed files with 29 additions and 95 deletions
|
@ -15,7 +15,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 +32,5 @@ fn supported() {
|
|||
is_supported::<Method>();
|
||||
is_supported::<Mime>();
|
||||
is_supported::<StatusCode>();
|
||||
is_supported::<Tm>();
|
||||
is_supported::<Uri>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue