Skip to content

Commit c5dab6e

Browse files
authored
Merge pull request #63 from apasel422/update
Ungate full `Clone` impl
2 parents c46362f + 12a666d commit c5dab6e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -635,14 +635,6 @@ impl<K: Hash + Eq, V, S: BuildHasher> LinkedHashMap<K, V, S> {
635635
}
636636
}
637637

638-
#[cfg(not(feature = "nightly"))]
639-
impl<K: Hash + Eq + Clone, V: Clone> Clone for LinkedHashMap<K, V> {
640-
fn clone(&self) -> Self {
641-
self.iter().map(|(k, v)| (k.clone(), v.clone())).collect()
642-
}
643-
}
644-
645-
#[cfg(feature = "nightly")]
646638
impl<K: Hash + Eq + Clone, V: Clone, S: BuildHasher + Clone> Clone for LinkedHashMap<K, V, S> {
647639
fn clone(&self) -> Self {
648640
let mut map = Self::with_hash_state(self.map.hasher().clone());

0 commit comments

Comments
 (0)