Skip to content

Commit

Permalink
Remove weird warning
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Aug 10, 2023
1 parent 170b5f8 commit 25d9dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/zio/prelude/Equal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ object Equal extends EqualVersionSpecific {
* Since there is only one `Unit` value all equality comparisons will always be true.
*/
implicit lazy val UnitHashOrd: Hash[Unit] with Ord[Unit] =
HashOrd.make(Hash.default.hash, (_, _) => Ordering.Equals, (_, _) => true)
HashOrd.make(_ => 0, (_, _) => Ordering.Equals, (_, _) => true)

/**
* Derives an `Equal[Vector[A]]` given an `Equal[A]`.
Expand Down

0 comments on commit 25d9dfe

Please sign in to comment.