Skip to content

Commit

Permalink
Make TranslatedUUIDGen to be final
Browse files Browse the repository at this point in the history
  • Loading branch information
bio-aeon committed Dec 31, 2024
1 parent ab1adbe commit 6495734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/shared/src/main/scala/cats/effect/std/UUIDGen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ trait UUIDGen[F[_]] { self =>
* a [[UUIDGen]] in the new context obtained by mapping the current one using `f`
*/
def mapK[G[_]](f: F ~> G): UUIDGen[G] =
new UUIDGen.TranslatedUUIDGen[F, G](self)(f) {}
new UUIDGen.TranslatedUUIDGen[F, G](self)(f)
}

object UUIDGen extends UUIDGenCompanionPlatform {
Expand Down Expand Up @@ -138,7 +138,7 @@ object UUIDGen extends UUIDGenCompanionPlatform {
}
}

private[std] abstract class TranslatedUUIDGen[F[_], G[_]](self: UUIDGen[F])(f: F ~> G)
private[std] final class TranslatedUUIDGen[F[_], G[_]](self: UUIDGen[F])(f: F ~> G)
extends UUIDGen[G] {
override def randomUUID: G[UUID] =
f(self.randomUUID)
Expand Down

0 comments on commit 6495734

Please sign in to comment.