Skip to content

Commit

Permalink
Array equality for &dyn Array (#3880)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Mar 21, 2023
1 parent 2730da1 commit 9d618fa
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 130 deletions.
4 changes: 2 additions & 2 deletions arrow-array/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,13 @@ pub trait ArrayAccessor: Array {
unsafe fn value_unchecked(&self, index: usize) -> Self::Item;
}

impl PartialEq for dyn Array {
impl PartialEq for dyn Array + '_ {
fn eq(&self, other: &Self) -> bool {
self.data().eq(other.data())
}
}

impl<T: Array> PartialEq<T> for dyn Array {
impl<T: Array> PartialEq<T> for dyn Array + '_ {
fn eq(&self, other: &T) -> bool {
self.data().eq(other.data())
}
Expand Down
Loading

0 comments on commit 9d618fa

Please sign in to comment.