Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
Add partialEq as trait bound for T
  • Loading branch information
jmole authored and becheran committed May 7, 2024
1 parent c521d88 commit 9b1dfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ impl<T: fmt::Debug> fmt::Debug for Grid<T> {
}
}

impl<T: Eq> PartialEq for Grid<T> {
impl<T: PartialEq> PartialEq for Grid<T> {
fn eq(&self, other: &Self) -> bool {
if self.rows != other.rows || self.cols != other.cols {
return false;
Expand Down

0 comments on commit 9b1dfa9

Please sign in to comment.