Skip to content

Commit

Permalink
Merge pull request #9 from linasdev/main
Browse files Browse the repository at this point in the history
Fix co-usage with the downcast crate
  • Loading branch information
Rayzeq committed Jul 20, 2023
2 parents 381acb9 + a641887 commit 05bbdc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,22 @@ macro_rules! __internal_eq_trait_object {
(impl ($($generics:tt)*) ($($path:tt)*) ($($bound:tt)*)) => {
impl<'eq, $($generics)*> ::core::cmp::PartialEq for (dyn $($path)* + 'eq) where $($bound)* {
fn eq(&self, other: &Self) -> bool {
self.dyn_eq(other.as_any())
self.dyn_eq(DynEq::as_any(other))
}
}
impl<'eq, $($generics)*> ::core::cmp::PartialEq for (dyn $($path)* + ::core::marker::Send + 'eq) where $($bound)* {
fn eq(&self, other: &Self) -> bool {
self.dyn_eq(other.as_any())
self.dyn_eq(DynEq::as_any(other))
}
}
impl<'eq, $($generics)*> ::core::cmp::PartialEq for (dyn $($path)* + ::core::marker::Sync + 'eq) where $($bound)* {
fn eq(&self, other: &Self) -> bool {
self.dyn_eq(other.as_any())
self.dyn_eq(DynEq::as_any(other))
}
}
impl<'eq, $($generics)*> ::core::cmp::PartialEq for (dyn $($path)* + ::core::marker::Send + ::core::marker::Sync + 'eq) where $($bound)* {
fn eq(&self, other: &Self) -> bool {
self.dyn_eq(other.as_any())
self.dyn_eq(DynEq::as_any(other))
}
}

Expand Down

0 comments on commit 05bbdc8

Please sign in to comment.