Skip to content

Commit cb59bec

Browse files
committed
Use using instead of implicit for scala 3
1 parent dd5f465 commit cb59bec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/scala-3/cats/mtl/HandleVariant.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ trait HandleVariant { this: Handle.type =>
2525

2626
final class AdHocSyntaxWired[E]:
2727

28-
def apply[F[_], A](body: Handle[F, E] ?=> F[A])(
29-
implicit F: ApplicativeThrow[F]): Inner[F, A] =
28+
def apply[F[_], A](body: Handle[F, E] ?=> F[A])(using ApplicativeThrow[F]): Inner[F, A] =
3029
new Inner(body)
3130

32-
final class Inner[F[_], A](body: Handle[F, E] ?=> F[A])(implicit F: ApplicativeThrow[F]):
31+
final class Inner[F[_], A](body: Handle[F, E] ?=> F[A])(using ApplicativeThrow[F]):
3332
def rescue(h: E => F[A]): F[A] =
3433
val Marker = new AnyRef
3534

0 commit comments

Comments
 (0)