From e15812d3d4025ea2f31bfb1624b28d9f50387117 Mon Sep 17 00:00:00 2001 From: Erlend Hamnaberg Date: Mon, 19 Aug 2024 11:32:38 +0200 Subject: [PATCH] formatting --- .../test/scala-2/io/circe/refined/CirceMunitSuite.scala | 2 +- .../test/scala-2/io/circe/refined/MissingInstances.scala | 8 ++++---- .../src/test/scala-2/io/circe/refined/RefinedSuite.scala | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/refined/shared/src/test/scala-2/io/circe/refined/CirceMunitSuite.scala b/refined/shared/src/test/scala-2/io/circe/refined/CirceMunitSuite.scala index cc7446b..c6205d8 100644 --- a/refined/shared/src/test/scala-2/io/circe/refined/CirceMunitSuite.scala +++ b/refined/shared/src/test/scala-2/io/circe/refined/CirceMunitSuite.scala @@ -35,4 +35,4 @@ trait CirceMunitSuite extends DisciplineSuite with ArbitraryInstances with EqIns registered.foreach(t => munitTestsBuffer += t.withName(s"$name - ${t.name}")) } -} \ No newline at end of file +} diff --git a/refined/shared/src/test/scala-2/io/circe/refined/MissingInstances.scala b/refined/shared/src/test/scala-2/io/circe/refined/MissingInstances.scala index 7abe396..89e4e7d 100644 --- a/refined/shared/src/test/scala-2/io/circe/refined/MissingInstances.scala +++ b/refined/shared/src/test/scala-2/io/circe/refined/MissingInstances.scala @@ -38,7 +38,7 @@ import shapeless.ops.nat.ToInt trait MissingInstances { implicit lazy val eqThrowable: Eq[Throwable] = Eq.fromUniversalEquals implicit lazy val eqBigDecimal: Eq[BigDecimal] = Eq.fromUniversalEquals - + implicit def eqRefArray[A <: AnyRef: Eq]: Eq[Array[A]] = Eq.by((value: Array[A]) => Predef.wrapRefArray(value).toVector)( cats.kernel.instances.vector.catsKernelStdEqForVector[A] @@ -62,8 +62,8 @@ trait MissingInstances { implicit lazy val eqCNil: Eq[CNil] = Eq.instance((_, _) => false) implicit def eqHCons[H, T <: HList](implicit eqH: Eq[H], eqT: Eq[T]): Eq[H :: T] = - Eq.instance[H :: T] { - case (h1 :: t1, h2 :: t2) => eqH.eqv(h1, h2) && eqT.eqv(t1, t2) + Eq.instance[H :: T] { case (h1 :: t1, h2 :: t2) => + eqH.eqv(h1, h2) && eqT.eqv(t1, t2) } implicit def eqCCons[L, R <: Coproduct](implicit eqL: Eq[L], eqR: Eq[R]): Eq[L :+: R] = @@ -115,4 +115,4 @@ trait MissingInstances { Arbitrary( Gen.containerOfN[C, A](toInt(), A.arbitrary).filter(ca => ev(ca).size == toInt()).map(Sized.wrap[C[A], L]) ) -} \ No newline at end of file +} diff --git a/refined/shared/src/test/scala-2/io/circe/refined/RefinedSuite.scala b/refined/shared/src/test/scala-2/io/circe/refined/RefinedSuite.scala index 1c35c83..4c2b7e1 100644 --- a/refined/shared/src/test/scala-2/io/circe/refined/RefinedSuite.scala +++ b/refined/shared/src/test/scala-2/io/circe/refined/RefinedSuite.scala @@ -38,7 +38,7 @@ import io.circe.testing.CodecTests import org.scalacheck.Arbitrary import org.scalacheck.Gen import shapeless.Nat -import shapeless.{Witness => W} +import shapeless.{ Witness => W } class RefinedSuite extends CirceMunitSuite { implicit def refinedEq[T, P, F[_, _]](implicit ev: RefType[F]): Eq[F[T, P]] = {