Skip to content

Commit 27174b6

Browse files
committed
prepare latest Scala 3
1 parent a79b826 commit 27174b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macros/src/main/scala-3/scalapb_playjson/ProtoMacrosPlay.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object ProtoMacrosPlay {
2727

2828
extension [A <: GeneratedMessage](companion: GeneratedMessageCompanion[A]) {
2929
def fromJson(json: String): A =
30-
JsonFormat.fromJsonString[A](json)(companion)
30+
JsonFormat.fromJsonString[A](json)(using companion)
3131

3232
def fromJsonOpt(json: String): Option[A] =
3333
try {
@@ -85,7 +85,7 @@ object ProtoMacrosPlay {
8585
JsonFormat.fromJsonString[A](str)
8686

8787
'{
88-
JsonFormat.fromJsonString[A](${ Expr(str) })($companion)
88+
JsonFormat.fromJsonString[A](${ Expr(str) })(using $companion)
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)