We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5683aa7 commit 67c1ff1Copy full SHA for 67c1ff1
src/result.rs
@@ -61,7 +61,7 @@ impl PartialEq for Error {
61
use self::Error::*;
62
63
match *self {
64
- CollectionNotFound => CollectionNotFound == *other,
+ CollectionNotFound => matches!(other, CollectionNotFound),
65
Unsupported(ref l) => {
66
if let Unsupported(ref r) = *other {
67
l == r
0 commit comments