Skip to content

Commit

Permalink
Remove implementation for non-HashMap types
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jul 23, 2019
1 parent 1fbb55b commit baabb0a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions 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;
Expand Down Expand Up @@ -1735,14 +1735,6 @@ impl<K, V, S> IntoHeaderMapAllowed for HashMap<K, V, S> {}

impl<'a, K, V, S> IntoHeaderMapAllowed for &'a HashMap<K, V, S> {}

impl<K, V> IntoHeaderMapAllowed for BTreeMap<K, V> {}

impl<'a, K, V> IntoHeaderMapAllowed for &'a BTreeMap<K, V> {}

impl<'a, T> IntoHeaderMapAllowed for &'a [T] {}

impl<T> IntoHeaderMapAllowed for Vec<T> {}

/// Convert a collection of tuples into a HeaderMap
///
/// # Examples
Expand Down

0 comments on commit baabb0a

Please sign in to comment.