Skip to content

Commit

Permalink
scalafmt update seems reasonable
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Nov 19, 2024
1 parent dd33f46 commit 1052312
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// skip version 3.8.2 seems to make a lot of questionable formatting choices
// skip version 3.8.3, still a lot of questionable formatting
version = 3.8.4-RC1
version = 3.8.4-RC2

// alignment is cute. i think it helps readability overall, but sometimes it produces silly results. consider restructuring code in those cases
align.preset = more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ class SingleSwitch {

@Benchmark
def run(step: Step): Unit =
if isManual then synchronized { source.set(step.run()) }
else source.set(step.run())
if isManual then synchronized { source.set(step.run()) } else source.set(step.run())
}
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ object Event {
/** Creates change events */
def change[T](signal: Signal[T])(using ticket: CreationTicket[State]): Event[Diff[T]] =
ticket.scope.embedCreation { tx ?=>
val internal = tx.initializer.create[(Pulse[T], Pulse[Diff[T]]), ChangeEventImpl[T]
& Event[Diff[T]]](
val internal = tx.initializer.create[
(Pulse[T], Pulse[Diff[T]]),
ChangeEventImpl[T]
& Event[Diff[T]]
](
Set[ReSource.of[State]](signal),
(Pulse.NoChange, Pulse.NoChange),
needsReevaluation = true
Expand Down

0 comments on commit 1052312

Please sign in to comment.