From c2125200b88d083237691ec94cb116c926fe7713 Mon Sep 17 00:00:00 2001 From: Vladislav Ugryumov Date: Wed, 22 Nov 2023 03:26:02 +0300 Subject: [PATCH] Fixed cross compile warnings. --- modules/core/ce2/src/test/scala/tofu/ScopedSuite.scala | 9 ++++----- .../kernel/src/main/scala-2/tofu/internal/Interop.scala | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/core/ce2/src/test/scala/tofu/ScopedSuite.scala b/modules/core/ce2/src/test/scala/tofu/ScopedSuite.scala index 8a015b0eb..370944e0a 100644 --- a/modules/core/ce2/src/test/scala/tofu/ScopedSuite.scala +++ b/modules/core/ce2/src/test/scala/tofu/ScopedSuite.scala @@ -6,14 +6,13 @@ import scala.concurrent.ExecutionContext import cats.effect.Blocker import tofu.syntax.scoped.* import tofu.syntax.monadic.* -import scala.annotation.nowarn +import tofu.compat.unused import scala.concurrent.Future class ScopedSuite { - @nowarn("cat=unused-params") def doSomething[F[_]: ContextShift: Async, A](fa: F[A], ea: => A)(calcEc: ExecutionContext)(implicit - ec: ExecutionContext, - block: Blocker + @unused ec: ExecutionContext, + @unused block: Blocker ): F[List[A]] = { implicit val exec: CalcExec[F] = Scoped.makeExecuteCE2(calcEc) @@ -31,7 +30,7 @@ class ScopedSuite { a4 <- calculation(fa) // test for CalcExec[F], outer ec is shadowed - a5 <- deferCalcFuture[F](implicit ec => Future(ea)) + _ <- deferCalcFuture[F](implicit ec => Future(ea)) } yield List(a1, a2, a3, a4) } } diff --git a/modules/kernel/src/main/scala-2/tofu/internal/Interop.scala b/modules/kernel/src/main/scala-2/tofu/internal/Interop.scala index b6aca704f..5bc1b5186 100644 --- a/modules/kernel/src/main/scala-2/tofu/internal/Interop.scala +++ b/modules/kernel/src/main/scala-2/tofu/internal/Interop.scala @@ -1,4 +1,5 @@ package tofu.internal +import scala.collection import scala.reflect.macros._ class Interop(val c: blackbox.Context) { @@ -9,7 +10,7 @@ class Interop(val c: blackbox.Context) { protected def tc[F[_]](implicit wttu: WTTU[F]) = wttu.tpe.typeConstructor protected def t[A](implicit wttu: WTT[A]) = wttu.tpe - protected def delegateParamTree[N](ps: Seq[Seq[Tree]])(ts: Seq[Type])(implicit N: WTT[N]): Tree = { + protected def delegateParamTree[N](ps: collection.Seq[collection.Seq[Tree]])(ts: collection.Seq[Type])(implicit N: WTT[N]): Tree = { val s = N.tpe.decls.head.asTerm.name.decodedName.toString val exp = c.parse(s)