We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36eeeab commit adedee6Copy full SHA for adedee6
src/lib.rs
@@ -97,7 +97,7 @@ pub use set::IndexSet;
97
98
/// Hash value newtype. Not larger than usize, since anything larger
99
/// isn't used for selecting position anyway.
100
-#[derive(Copy, Debug)]
+#[derive(Clone, Copy, Debug, PartialEq)]
101
struct HashValue(usize);
102
103
impl HashValue {
@@ -107,19 +107,6 @@ impl HashValue {
107
}
108
109
110
-impl Clone for HashValue {
111
- #[inline]
112
- fn clone(&self) -> Self {
113
- *self
114
- }
115
-}
116
-impl PartialEq for HashValue {
117
118
- fn eq(&self, rhs: &Self) -> bool {
119
- self.0 == rhs.0
120
121
122
-
123
#[derive(Copy, Clone, Debug)]
124
struct Bucket<K, V> {
125
hash: HashValue,
0 commit comments