Skip to content

Commit

Permalink
Fixed cross compile warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grryum committed Nov 22, 2023
1 parent d89d8aa commit c212520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions modules/core/ce2/src/test/scala/tofu/ScopedSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
}
}
3 changes: 2 additions & 1 deletion modules/kernel/src/main/scala-2/tofu/internal/Interop.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package tofu.internal
import scala.collection
import scala.reflect.macros._

class Interop(val c: blackbox.Context) {
Expand All @@ -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)

Expand Down

0 comments on commit c212520

Please sign in to comment.