diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 197ca112..93975bed 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.5.9 de114205d5ae0ba856c1bf5fbda09a88d2120f21 + +# Scala Steward: Reformat with scalafmt 3.6.0 +f16708f8ede48a7118612bcfee960cc4cab56a50 diff --git a/.scalafmt.conf b/.scalafmt.conf index 591d0b58..4607ee0c 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,2 +1,2 @@ -version = 3.5.9 +version = 3.6.0 runner.dialect = scala3 \ No newline at end of file diff --git a/src/core/impl.scala b/src/core/impl.scala index c604dce4..2ce1b0cf 100644 --- a/src/core/impl.scala +++ b/src/core/impl.scala @@ -118,7 +118,7 @@ trait SealedTraitDerivation: protected transparent inline def subtypesFromMirror[A, SubtypeTuple <: Tuple]( m: Mirror.SumOf[A], - idx: Int = 0 //no longer used, kept for bincompat + idx: Int = 0 // no longer used, kept for bincompat ): List[SealedTrait.Subtype[Typeclass, A, _]] = inline erasedValue[SubtypeTuple] match case _: EmptyTuple => @@ -126,7 +126,10 @@ trait SealedTraitDerivation: case _: (s *: tail) => val sub = summonFrom { case mm: Mirror.SumOf[`s`] => - subtypesFromMirror[A, mm.MirroredElemTypes](mm.asInstanceOf[m.type], 0) + subtypesFromMirror[A, mm.MirroredElemTypes]( + mm.asInstanceOf[m.type], + 0 + ) case _ => List( new SealedTrait.Subtype[Typeclass, A, s]( diff --git a/src/core/magnolia.scala b/src/core/magnolia.scala index 621adcd7..14686702 100644 --- a/src/core/magnolia.scala +++ b/src/core/magnolia.scala @@ -65,7 +65,7 @@ trait Derivation[TypeClass[_]] transparent inline def subtypes[T, SubtypeTuple <: Tuple]( m: Mirror.SumOf[T], - idx: Int = 0 //no longer used, kept for bincompat + idx: Int = 0 // no longer used, kept for bincompat ): List[SealedTrait.Subtype[Typeclass, T, _]] = subtypesFromMirror[T, SubtypeTuple](m, idx) diff --git a/src/test/tests.scala b/src/test/tests.scala index fc4b9cdd..2c83e90e 100644 --- a/src/test/tests.scala +++ b/src/test/tests.scala @@ -738,7 +738,7 @@ class Tests extends munit.FunSuite { List( Size.S, Size.M, - Size.L, + Size.L ).foreach { o => val chosen = res.choose(o)(identity) assertEquals(chosen.value, o)