Skip to content

Commit

Permalink
Removed Clone requirement from DefaultBTreeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellBerend committed Feb 4, 2024
1 parent a057ed1 commit 3df1b76
Showing 1 changed file with 6 additions and 6 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

0 comments on commit 3df1b76

Please sign in to comment.