Skip to content

Commit c2b358b

Browse files
committed
Mark the cached object as private[this].
1 parent f76eb94 commit c2b358b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/shared/src/main/scala/cats/effect/kernel/Resource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ object Resource extends ResourceFOInstances0 with ResourceHOInstances0 with Reso
993993
def onFinalizeCase[F[_]: Applicative](release: ExitCase => F[Unit]): Resource[F, Unit] =
994994
unit.onFinalizeCase(release)
995995

996-
private val cachedLiftK: Id ~> Resource[Id, *] =
996+
private[this] val cachedLiftK: Id ~> Resource[Id, *] =
997997
new (Id ~> Resource[Id, *]) {
998998
def apply[A](fa: Id[A]): Resource[Id, A] = Resource.eval(fa)
999999
}

0 commit comments

Comments
 (0)