Skip to content

Commit

Permalink
Bump scalafmt 3.8.4-RC4
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Dec 28, 2024
1 parent 9a38d18 commit 7f50fa1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.8.3"
version = "3.8.4-RC4"
runner.dialect = scala3

align.preset = more
Expand Down
3 changes: 2 additions & 1 deletion lila/src/main/scala/HeapSort.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ object HeapSort:
* should be used for small nb and large n
* Complexity: O(n + nb * log(n))
*/
def topN[T, C](xs: IterableOnce[T], nb: Int)(using ord: Ordering[T])(using
def topN[T, C](xs: IterableOnce[T], nb: Int)(using
ord: Ordering[T],
bf: BuildFrom[xs.type, T, C]
): C =
val p = PriorityQueue.from(xs)(ord)
Expand Down
2 changes: 1 addition & 1 deletion lila/src/main/scala/StringOps.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package scalalib

import java.text.Normalizer
import java.lang.Character.{ UnicodeBlock as Block }
import java.lang.Character.UnicodeBlock as Block

object StringOps:

Expand Down
3 changes: 1 addition & 2 deletions lila/src/test/scala/WMMatchingTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class WMMatchingTest extends munit.FunSuite:
def checkScore(ans: (Int, Int)): Boolean = res == ans
assert(WMMatching(v, pairScore) match
case Success(l) => checkScore(score(l))
case Failure(_) => false
)
case Failure(_) => false)

test("create S-blossom and use it for augmentation"):
check0(Array((1, 2, 8), (1, 3, 9), (2, 3, 10), (3, 4, 7)), false, List(-1, 2, 1, 4, 3))
Expand Down
2 changes: 1 addition & 1 deletion playJson/src/main/scala/Json.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object Json:
bts: SameRuntime[A, T],
stb: SameRuntime[T, A],
format: Format[A]
) => NotGiven[NoJsonHandler[T]] => Format[T] =
) => NotGiven[NoJsonHandler[T]] => Format[T] =
format.bimap(bts.apply, stb.apply)

given [A] => (sr: SameRuntime[A, String]) => KeyWrites[A]:
Expand Down

0 comments on commit 7f50fa1

Please sign in to comment.