Skip to content

Commit

Permalink
fix: warning "local var is never updated" for generated instance fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya-Sib committed Dec 13, 2023
1 parent 3059341 commit 0ef87c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lazy val scala3 = "3.3.1-RC1-bin-20230318-7226ba6-NIGHTLY"
ThisBuild / scalaVersion := scala3

lazy val commonSettings = Seq(
version := "0.28.0",
version := "0.28.1",
organization := "com.tethys-json",
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("https://github.com/tethys-json/tethys")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ trait ReaderDerivation
allTypes.foldLeft((List[(Type, TermName)](), List[Tree]())) {
case ((types, trees), tpe) if !types.exists(_._1 =:= tpe) =>
val term = TermName(c.freshName())
val default = q"private[this] var $term: $tpe = _"
val default = q"private[this] val $term: $tpe = _"

(tpe -> term :: types, default :: trees)

Expand Down

0 comments on commit 0ef87c9

Please sign in to comment.