From db17865ebc2dfd29bab7a204e1ecc7c7340bf33a Mon Sep 17 00:00:00 2001 From: satorg Date: Sun, 30 Oct 2022 22:20:49 -0700 Subject: [PATCH] fix compiler warnings --- .../scala/cats/tests/IndexedReaderWriterStateTSuite.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala b/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala index 931b2643c70..9580660727f 100644 --- a/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala @@ -39,7 +39,6 @@ import cats.syntax.apply._ import cats.syntax.eq._ import cats.syntax.semigroup._ import cats.syntax.traverse._ -import org.scalacheck.Arbitrary import org.scalacheck.Prop._ class IndexedReaderWriterStateTSuite extends CatsSuite { @@ -272,7 +271,7 @@ class IndexedReaderWriterStateTSuite extends CatsSuite { log: String ) => val flatMap = rwst.flatMap { a => - ReaderWriterStateT { (e, s) => + ReaderWriterStateT { (_, s) => f(a).map((log, s, _)) } } @@ -523,13 +522,12 @@ object IndexedReaderWriterStateTSuite { } def addLogUnit(i: Int): ReaderWriterState[String, Unit, Int, Int] = - ReaderWriterState { (context, state) => + ReaderWriterState { (_, state) => ((), state + i, state + i) } implicit def IRWSTEq[F[_], E, L, SA, SB, A](implicit SA: ExhaustiveCheck[SA], - SB: Arbitrary[SB], E: ExhaustiveCheck[E], FLSB: Eq[F[(L, SB, A)]], F: Monad[F]