Skip to content

Commit

Permalink
Merge pull request #876 from kitbellew/876
Browse files Browse the repository at this point in the history
Equalizer: fix warning for unsafe use of `.equals`
  • Loading branch information
tgodzik authored Jan 20, 2025
2 parents 0278345 + bbe995e commit a561c8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions munit-diff/shared/src/main/scala/munit/diff/Equalizer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ trait Equalizer[T] {
}
object Equalizer {
def default[T]: Equalizer[T] = new Equalizer[T] {
override def equals(original: T, revised: T): Boolean = original
.equals(revised)
override def equals(original: T, revised: T): Boolean = original == revised
}
}

0 comments on commit a561c8b

Please sign in to comment.