cargo fix --edition

This commit is contained in:
Daniel Eades
2019-08-07 18:07:35 +01:00
committed by Sean McArthur
parent c3b2a26c46
commit 86d9cbc66e
25 changed files with 163 additions and 163 deletions

View File

@@ -1,7 +1,7 @@
//! The cookies module contains types for working with request and response cookies.
use cookie_crate;
use header;
use crate::cookie_crate;
use crate::header;
use std::borrow::Cow;
use std::fmt;
use std::time::SystemTime;
@@ -55,7 +55,7 @@ impl Cookie<'static> {
}
impl<'a> Cookie<'a> {
fn parse(value: &'a ::header::HeaderValue) -> Result<Cookie<'a>, CookieParseError> {
fn parse(value: &'a crate::header::HeaderValue) -> Result<Cookie<'a>, CookieParseError> {
std::str::from_utf8(value.as_bytes())
.map_err(cookie::ParseError::from)
.and_then(cookie::Cookie::parse)