From baabb0a0773a15269e17b6faf97416df176d182b Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Tue, 23 Jul 2019 15:44:46 +0200 Subject: [PATCH] Remove implementation for non-HashMap types See https://github.com/hyperium/http/pull/326#issuecomment-511032065 --- src/header/map.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/header/map.rs b/src/header/map.rs index e9ee7cab..22dc6787 100644 --- a/src/header/map.rs +++ b/src/header/map.rs @@ -1,5 +1,5 @@ use std::{fmt, mem, ops, ptr, vec}; -use std::collections::{BTreeMap, HashMap}; +use std::collections::{HashMap}; use std::collections::hash_map::RandomState; use std::hash::{BuildHasher, Hash, Hasher}; use std::iter::FromIterator; @@ -1735,14 +1735,6 @@ impl IntoHeaderMapAllowed for HashMap {} impl<'a, K, V, S> IntoHeaderMapAllowed for &'a HashMap {} -impl IntoHeaderMapAllowed for BTreeMap {} - -impl<'a, K, V> IntoHeaderMapAllowed for &'a BTreeMap {} - -impl<'a, T> IntoHeaderMapAllowed for &'a [T] {} - -impl IntoHeaderMapAllowed for Vec {} - /// Convert a collection of tuples into a HeaderMap /// /// # Examples