diff --git a/core/shared/src/main/scala-3/formless/hlist/FindField.scala b/core/shared/src/main/scala-3/formless/hlist/FindField.scala index cd81814..d3a12a0 100644 --- a/core/shared/src/main/scala-3/formless/hlist/FindField.scala +++ b/core/shared/src/main/scala-3/formless/hlist/FindField.scala @@ -64,7 +64,7 @@ object FindField { go[head :: RevHead, [a] =>> HList.Append[Rep[head], a], HList.Append[Rem, head], tail, S[Idx]]((idx + 1).asInstanceOf[S[Idx]]) case '[HNil] => report.errorAndAbort(s"Failed to find field ${Type.show[F]} in HList ${Type.show[T]}") - } + }: @annotation.nowarn("msg=match may not be exhaustive") go[HNil, [a] =>> a :: HNil, HNil, T, 0](0) } diff --git a/core/shared/src/main/scala-3/formless/record/FindField.scala b/core/shared/src/main/scala-3/formless/record/FindField.scala index e255c37..ea3b767 100644 --- a/core/shared/src/main/scala-3/formless/record/FindField.scala +++ b/core/shared/src/main/scala-3/formless/record/FindField.scala @@ -67,7 +67,7 @@ object FindField { go[[a] =>> HList.Append[Rep[head], a], HList.Append[Rem, head], tail](idx + 1) case '[HNil] => report.errorAndAbort(s"Failed to find field ${Type.show[F]} in record ${Type.show[T]}") - } + }: @annotation.nowarn("msg=match may not be exhaustive") go[[a] =>> a :: HNil, HNil, T](0) } diff --git a/project/plugins.sbt b/project/plugins.sbt index ec355cd..0139b6f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.23.0") addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.30.0") addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.5") -addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.3") +addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.4") addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2") addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.21.0")