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 38c34a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/zio/prelude/Equal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,8 @@ object Equal extends EqualVersionSpecific {
* `Hash` and `Ord` (and thus also `Equal`) instance for `Unit` values.
* 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)
implicit val UnitHashOrd: Hash[Unit] with Ord[Unit] =
HashOrd.make(_ => 0, (_, _) => Ordering.Equals, (_, _) => true)

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

0 comments on commit 38c34a7

Please sign in to comment.