Skip to content

Commit 88b109a

Browse files
committed
Make Scala 3 happy
1 parent e5627da commit 88b109a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/jsonrpclib/Endpoint.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object Endpoint {
1515
def apply[In, Err, Out](
1616
run: In => F[Either[Err, Out]]
1717
)(implicit inCodec: Codec[In], errCodec: ErrorCodec[Err], outCodec: Codec[Out]): Endpoint[F] =
18-
RequestResponseEndpoint(method, (_: Method, in) => run(in), inCodec, errCodec, outCodec)
18+
RequestResponseEndpoint(method, (_: Method, in: In) => run(in), inCodec, errCodec, outCodec)
1919

2020
def full[In, Err, Out](
2121
run: (Method, In) => F[Either[Err, Out]]
@@ -33,7 +33,7 @@ object Endpoint {
3333
)
3434

3535
def notification[In](run: In => F[Unit])(implicit inCodec: Codec[In]): Endpoint[F] =
36-
NotificationEndpoint(method, (_: Method, in) => run(in), inCodec)
36+
NotificationEndpoint(method, (_: Method, in: In) => run(in), inCodec)
3737

3838
def notificationFull[In](run: (Method, In) => F[Unit])(implicit inCodec: Codec[In]): Endpoint[F] =
3939
NotificationEndpoint(method, run, inCodec)

0 commit comments

Comments
 (0)