From 4a7696280fad9d4d29f0868005e779f33180893d Mon Sep 17 00:00:00 2001 From: Andrey Davydov Date: Thu, 1 Jan 2015 10:56:48 +0300 Subject: [PATCH] compilation fix compilation fix for rust version "rustc 0.13.0-nightly (7608dbad6 2014-12-31 10:06:21 -0800)" --- src/header/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header/mod.rs b/src/header/mod.rs index 93d384fd..bc200be9 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -12,7 +12,7 @@ use std::intrinsics::TypeId; use std::raw::TraitObject; use std::str::{SendStr, FromStr}; use std::collections::HashMap; -use std::collections::hash_map::{Entries, Entry}; +use std::collections::hash_map::{Iter, Entry}; use std::{hash, mem}; use mucell::MuCell; @@ -272,7 +272,7 @@ impl fmt::Show for Headers { /// An `Iterator` over the fields in a `Headers` map. pub struct HeadersItems<'a> { - inner: Entries<'a, CaseInsensitive, MuCell> + inner: Iter<'a, CaseInsensitive, MuCell> } impl<'a> Iterator> for HeadersItems<'a> {