Skip to content

Commit

Permalink
Reformat with scalafmt 3.8.4
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
typelevel-steward[bot] committed Jan 13, 2025
1 parent 7ea4da8 commit 887a49a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
7 changes: 5 additions & 2 deletions core/shared/src/main/scala/fs2/concurrent/Signal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,11 @@ object SignallingMapRef {
.map { case (state, ids) =>
def newId = ids.getAndUpdate(_ + 1)

def updateAndNotify[U](state: State, k: K, f: Option[V] => (Option[V], U))
: (State, F[U]) = {
def updateAndNotify[U](
state: State,
k: K,
f: Option[V] => (Option[V], U)
): (State, F[U]) = {

val keyState = state.keys.get(k)

Expand Down
5 changes: 2 additions & 3 deletions core/shared/src/test/scala/fs2/StreamPerformanceSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,8 @@ class StreamPerformanceSuite extends Fs2Suite {
val s: Stream[SyncIO, Int] =
List
.fill(N)(bracketed)
.foldLeft(Stream.raiseError[SyncIO](new Err): Stream[SyncIO, Int]) {
(acc, hd) =>
acc.handleErrorWith(_ => hd)
.foldLeft(Stream.raiseError[SyncIO](new Err): Stream[SyncIO, Int]) { (acc, hd) =>
acc.handleErrorWith(_ => hd)
}
s.compile.toList.attempt
.flatMap(_ => (ok.get, open.get).tupled)
Expand Down
11 changes: 5 additions & 6 deletions io/jvm/src/test/scala/fs2/io/IoPlatformSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ class IoPlatformSuite extends Fs2Suite {
(bs1.length != (o1 + l1)) &&
// we expect that next slice will wrap same buffer
((bs2 eq bs1) && (o2 == o1 + l1))
} || {
// if first slice buffer is 'full'
(bs2.length == (o1 + l1)) &&
// we expect new buffer allocated for next slice
((bs2 ne bs1) && (o2 == 0))
}
} ||
// if first slice buffer is 'full'
(bs2.length == (o1 + l1)) &&
// we expect new buffer allocated for next slice
((bs2 ne bs1) && (o2 == 0))
case _ => false // unexpected chunk subtype
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ object BlockCodec {
("Block Total Length" | constant(length.bv) )}
// format: on

def unknownByteOrder[L <: HList, LB <: HList](hexConstant: ByteVector)(f: Length => Codec[L])(
implicit
def unknownByteOrder[L <: HList, LB <: HList](
hexConstant: ByteVector
)(f: Length => Codec[L])(implicit
prepend: Prepend.Aux[L, Unit :: HNil, LB],
init: Init.Aux[LB, L],
last: Last.Aux[LB, Unit]
Expand Down

0 comments on commit 887a49a

Please sign in to comment.