Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.4 (#50)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.8.4

* Reformat with scalafmt 3.8.4

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.8.4' to .git-blame-ignore-revs

---------

Co-authored-by: horothesun-scala-steward[bot] <132169906+horothesun-scala-steward[bot]@users.noreply.github.com>
  • Loading branch information
horothesun-scala-steward[bot] authored Jan 13, 2025
1 parent 27b04cf commit 27f1531
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.8.4
527ed74bc5745980f44d48405536889295a66a2e
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
runner.dialect = scala3
align.preset = some
align.arrowEnumeratorGenerator = true
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/Day02.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ object Day02:
.toList
.traverse(_.split(" ") match
case Array(n, c) => (Color.from(c), n.toIntOption).tupled
case _ => None
)
case _ => None)
.map(cns => Reveal(cubesByColor = cns.toMap))

case class Game(id: GameId, reveals: List[Reveal]):
Expand Down
7 changes: 6 additions & 1 deletion src/main/scala/Day10.scala
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ object Day10:
lazy val loop: Option[Loop] = for {
s <- startPos
case (fst, snd) <- exactly2Adjacent(s)
loop <- loopPaths(fstLast = fst, fstPath = NonEmptyList.one(s), sndLast = snd, sndPath = NonEmptyList.one(s))
loop <- loopPaths(
fstLast = fst,
fstPath = NonEmptyList.one(s),
sndLast = snd,
sndPath = NonEmptyList.one(s)
)
} yield loop

@tailrec
Expand Down

0 comments on commit 27f1531

Please sign in to comment.