| commit | e8b1bb4d126e68d48fdb3bd2df0be130f1bd1ece | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Nov 24 20:37:37 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue Nov 24 21:17:06 2020 -0800 |
| tree | cac00d68d38c418b1563e20368098c0ecb6f702d | |
| parent | 2cabd0a8a37b79f4ad4c9f7648e71921d3640e70 [diff] [blame] |
Touch up pr 459
diff --git a/syntax/impls.rs b/syntax/impls.rs index 6fae2f9..ef3ba8f 100644 --- a/syntax/impls.rs +++ b/syntax/impls.rs
@@ -175,6 +175,7 @@ } impl Eq for Array {} + impl PartialEq for Array { fn eq(&self, other: &Array) -> bool { let Array { @@ -192,6 +193,7 @@ inner == inner2 && len == len2 } } + impl Hash for Array { fn hash<H: Hasher>(&self, state: &mut H) { let Array { @@ -201,7 +203,7 @@ len, } = self; inner.hash(state); - len.to_string().hash(state); + len.hash(state); } }