Skip to content

Commit

Permalink
Update scalafmt, fix +_ -> + _ formatting breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-kai committed Oct 17, 2022
1 parent 5b948e6 commit cb30f36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "3.5.9"
runner.dialect = scala3
version = "3.6.0"
runner.dialect = scala3Future
project.git = true
project.excludePaths = ["glob:**.sbt", "glob:**sbtgen.sc"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -995,11 +995,11 @@ object Lifecycle extends LifecycleInstances {
}

private[definition] sealed trait LifecycleInstances extends LifecycleCatsInstances {
implicit final def functor2ForLifecycle[F[+_, +_]: Functor2]: Functor2[Lifecycle2[F, + _, + _]] = new Functor2[Lifecycle2[F, + _, + _]] {
implicit final def functor2ForLifecycle[F[+_, +_]: Functor2]: Functor2[Lifecycle2[F, +_, +_]] = new Functor2[Lifecycle2[F, +_, +_]] {
override def map[R, E, A, B](r: Lifecycle[F[E, _], A])(f: A => B): Lifecycle[F[E, _], B] = r.map(f)
}

implicit final def functor3ForLifecycle[F[-_, +_, +_]: Functor3]: Functor3[Lifecycle3[F, - _, + _, + _]] = new Functor3[Lifecycle3[F, - _, + _, + _]] {
implicit final def functor3ForLifecycle[F[-_, +_, +_]: Functor3]: Functor3[Lifecycle3[F, -_, +_, +_]] = new Functor3[Lifecycle3[F, -_, +_, +_]] {
override def map[R, E, A, B](r: Lifecycle[F[R, E, _], A])(f: A => B): Lifecycle[F[R, E, _], B] = r.map(f)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ trait BlockingIOLowPriorityVersionSpecific {
implicit BlockingIO3: C[FR] {
type Divergence = Nondivergent; type IsPredefined = T // `IsPredefined = T` is required only on Scala 3
}
): Divergent.Of[BlockingIO2[FR[R, + _, + _]]] { type IsPredefined = T } = {
BlockingIO3.asInstanceOf[Divergent.Of[BlockingIO2[FR[R, + _, + _]]] { type IsPredefined = T }]
): Divergent.Of[BlockingIO2[FR[R, +_, +_]]] { type IsPredefined = T } = {
BlockingIO3.asInstanceOf[Divergent.Of[BlockingIO2[FR[R, +_, +_]]] { type IsPredefined = T }]
}

}

0 comments on commit cb30f36

Please sign in to comment.