Skip to content

Commit

Permalink
prepare latest Scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 26, 2024
1 parent a79b826 commit 27174b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object ProtoMacrosPlay {

extension [A <: GeneratedMessage](companion: GeneratedMessageCompanion[A]) {
def fromJson(json: String): A =
JsonFormat.fromJsonString[A](json)(companion)
JsonFormat.fromJsonString[A](json)(using companion)

def fromJsonOpt(json: String): Option[A] =
try {
Expand Down Expand Up @@ -85,7 +85,7 @@ object ProtoMacrosPlay {
JsonFormat.fromJsonString[A](str)

'{
JsonFormat.fromJsonString[A](${ Expr(str) })($companion)
JsonFormat.fromJsonString[A](${ Expr(str) })(using $companion)
}
}
}

0 comments on commit 27174b6

Please sign in to comment.