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 4709056 commit d7e1f9aCopy full SHA for d7e1f9a
fluent-bundle/src/types/mod.rs
@@ -60,9 +60,7 @@ pub trait AnyEq: Any + 'static {
60
61
impl<T: Any + PartialEq> AnyEq for T {
62
fn equals(&self, other: &dyn Any) -> bool {
63
- other
64
- .downcast_ref::<Self>()
65
- .map_or(false, |that| self == that)
+ other.downcast_ref::<Self>() == Some(self)
66
}
67
fn as_any(&self) -> &dyn Any {
68
self
0 commit comments