Skip to content

Commit

Permalink
Relax needless bounds (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Mitchell Berendhuysen <[email protected]>
  • Loading branch information
Maneren and MitchellBerend authored Feb 4, 2024
1 parent c157f49 commit 23b4b72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/default_btree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ where

impl<'a, K, V> IntoIterator for &'a DefaultBTreeMap<K, V>
where
K: Eq + Ord + Clone,
K: Eq + Ord,
V: Default,
{
type Item = (&'a K, &'a V);
Expand All @@ -752,7 +752,7 @@ where

impl<K, V> Index<&K> for DefaultBTreeMap<K, V>
where
K: Eq + Ord + Clone,
K: Eq + Ord,
V: Default,
{
type Output = V;
Expand All @@ -764,7 +764,7 @@ where

impl<'a, K, V> IntoIterator for &'a mut DefaultBTreeMap<K, V>
where
K: Eq + Ord + Clone,
K: Eq + Ord,
V: Default,
{
type Item = (&'a K, &'a mut V);
Expand All @@ -777,7 +777,7 @@ where

impl<K, V> From<BTreeMap<K, V>> for DefaultBTreeMap<K, V>
where
K: Eq + Ord + Clone,
K: Eq + Ord,
V: Default,
{
fn from(btree: BTreeMap<K, V>) -> Self {
Expand All @@ -790,7 +790,7 @@ where

impl<K, V> From<DefaultBTreeMap<K, V>> for BTreeMap<K, V>
where
K: Eq + Ord + Clone,
K: Eq + Ord,
V: Default,
{
fn from(btree: DefaultBTreeMap<K, V>) -> Self {
Expand All @@ -800,7 +800,7 @@ where

impl<K, V> Iterator for DefaultBTreeMapIter<K, V>
where
K: Eq + Ord + Clone,
K: Eq + Ord,
V: Default,
{
type Item = (K, V);
Expand Down
16 changes: 8 additions & 8 deletions src/default_hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ where

impl<K, V, S> IntoIterator for DefaultHashMap<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash + Clone,
V: Default,
S: BuildHasher,
{
Expand All @@ -597,7 +597,7 @@ where

impl<'a, K, V, S> IntoIterator for &'a DefaultHashMap<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand All @@ -611,7 +611,7 @@ where

impl<K, V, S> Index<&K> for DefaultHashMap<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand All @@ -624,7 +624,7 @@ where

impl<'a, K, V, S> IntoIterator for &'a mut DefaultHashMap<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand All @@ -638,7 +638,7 @@ where

impl<K, V, S> From<HashMap<K, V, S>> for DefaultHashMap<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand All @@ -652,7 +652,7 @@ where

impl<K, V, S> From<DefaultHashMap<K, V, S>> for HashMap<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand All @@ -663,7 +663,7 @@ where

impl<K, V, S> Iterator for DefaultHashMapIter<K, V, S>
where
K: Eq + Hash + Ord + Clone,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand All @@ -682,7 +682,7 @@ where

pub struct DefaultHashMapIter<K, V, S>
where
K: Eq + Hash + Ord,
K: Eq + Hash,
V: Default,
S: BuildHasher,
{
Expand Down

0 comments on commit 23b4b72

Please sign in to comment.