Skip to content

Commit

Permalink
Avoid using crate:: paths for compatibility with older rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jul 2, 2019
1 parent d591131 commit b76d702
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/header/map.rs
@@ -1,6 +1,7 @@
use super::HeaderValue;
use super::name::{HeaderName, HdrName, InvalidHeaderName};
use crate::convert::HttpTryFrom;
use convert::HttpTryFrom;
use Error;
use sealed::Sealed;

use std::{fmt, mem, ops, ptr, vec};
Expand Down Expand Up @@ -1749,7 +1750,7 @@ impl<COLLECTION, K, V> HttpTryFrom<COLLECTION> for HeaderMap<HeaderValue>
K: AsRef<str>,
V: AsRef<str>
{
type Error = ::Error;
type Error = Error;

fn try_from(c: COLLECTION) -> Result<Self, Self::Error> {
c.into_iter()
Expand Down

0 comments on commit b76d702

Please sign in to comment.