Skip to content

Commit 67c1ff1

Browse files
committed
Fix infinite Eq loop
1 parent 5683aa7 commit 67c1ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl PartialEq for Error {
6161
use self::Error::*;
6262

6363
match *self {
64-
CollectionNotFound => CollectionNotFound == *other,
64+
CollectionNotFound => matches!(other, CollectionNotFound),
6565
Unsupported(ref l) => {
6666
if let Unsupported(ref r) = *other {
6767
l == r

0 commit comments

Comments
 (0)