From 35706a702a2ec92b49ecfb9cf5d4749386d8e69d Mon Sep 17 00:00:00 2001 From: Max Smirnov Date: Mon, 19 Feb 2024 22:41:31 +0300 Subject: [PATCH] Run scalafmt --- core/src/main/scala-2.13+/cats/instances/arraySeq.scala | 4 +++- core/src/main/scala/cats/instances/option.scala | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala-2.13+/cats/instances/arraySeq.scala b/core/src/main/scala-2.13+/cats/instances/arraySeq.scala index 7a185ee089..27e7db072f 100644 --- a/core/src/main/scala-2.13+/cats/instances/arraySeq.scala +++ b/core/src/main/scala-2.13+/cats/instances/arraySeq.scala @@ -223,7 +223,9 @@ private[cats] object ArraySeqInstances { G.map2Eval(f(x), xse)((b, vec) => if (b) x +: vec else vec) }.value - override def mapAccumulateFilter[S, A, B](init: S, fa: ArraySeq[A])(f: (S, A) => (S, Option[B])): (S, ArraySeq[B]) = + override def mapAccumulateFilter[S, A, B](init: S, fa: ArraySeq[A])( + f: (S, A) => (S, Option[B]) + ): (S, ArraySeq[B]) = StaticMethods.mapAccumulateFilterFromStrictFunctorFilter(init, fa, f)(this) } } diff --git a/core/src/main/scala/cats/instances/option.scala b/core/src/main/scala/cats/instances/option.scala index 86d8ec7e1d..f8777a8911 100644 --- a/core/src/main/scala/cats/instances/option.scala +++ b/core/src/main/scala/cats/instances/option.scala @@ -284,7 +284,7 @@ private[instances] trait OptionInstancesBinCompat0 { case None => G.pure(Option.empty[A]) case Some(a) => G.map(f(a))(b => if (b) Some(a) else None) } - + override def mapAccumulateFilter[S, A, B](init: S, fa: Option[A])(f: (S, A) => (S, Option[B])): (S, Option[B]) = fa match { case Some(a) => f(init, a)