Skip to content

Commit

Permalink
fix deprecation in build.sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
arainko committed Oct 19, 2024
1 parent 8573332 commit 4afc8cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ThisBuild / organizationName := "arainko"
ThisBuild / startYear := Some(2023)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(tlGitHubDev("arainko", "Aleksander Rainko"))
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / sonatypeCredentialHost := Sonatype.sonatypeLegacy
ThisBuild / scalaVersion := "3.3.4"
ThisBuild / tlSitePublishBranch := Some("series/0.2.x")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ private[ducktape] object Debug extends LowPriorityDebug {
private[ducktape] class ForProduct[A](tpeName: String, _instances: => IArray[Debug[Any]]) extends Debug[A] {
private lazy val instances = _instances
def astify(self: A)(using Quotes): AST = {
val prod = self.asInstanceOf[scala.Product]
val fields = prod.productElementNames
.zip(instances)
.zip(prod.productIterator)
.map {
case label -> debug -> value =>
label -> debug.astify(value)
}
.to(VectorMap)

Product(tpeName, fields)
}
val prod = self.asInstanceOf[scala.Product]
val fields = prod.productElementNames
.zip(instances)
.zip(prod.productIterator)
.map {
case label -> debug -> value =>
label -> debug.astify(value)
}
.to(VectorMap)

Product(tpeName, fields)
}
}

private inline def product[A](using A: Mirror.ProductOf[A]): Debug[A] = {
Expand Down

0 comments on commit 4afc8cc

Please sign in to comment.