Skip to content

Commit 0037d01

Browse files
Update scalafmt-core to 3.8.4 (#1017)
## About this PR πŸ“¦ Updates [org.scalameta:scalafmt-core](https://github.com/scalameta/scalafmt) from `3.8.3` to `3.8.4` πŸ“œ [GitHub Release Notes](https://github.com/scalameta/scalafmt/releases/tag/v3.8.4) - [Version Diff](scalameta/scalafmt@v3.8.3...v3.8.4) ## Usage βœ… **Please merge!** I'll automatically update this PR to resolve conflicts as long as you don't change it yourself. If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below. Configure Scala Steward for your repository with a [`.scala-steward.conf`](https://github.com/scala-steward-org/scala-steward/blob/ba2bf8be3a0bdbe1ea6198b7970d13a754e707bf/docs/repo-specific-configuration.md) file. _Have a fantastic day writing Scala!_ <details> <summary>βš™ Adjust future updates</summary> Add this to your `.scala-steward.conf` file to ignore future updates of this dependency: ``` updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ] ``` Or, add this to slow down future updates of this dependency: ``` dependencyOverrides = [{ pullRequests = { frequency = "30 days" }, dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" } }] ``` </details> <sup> labels: library-update, early-semver-patch, semver-spec-patch, commit-count:n:3 </sup> <!-- scala-steward = { "Update" : { "ForArtifactId" : { "crossDependency" : [ { "groupId" : "org.scalameta", "artifactId" : { "name" : "scalafmt-core", "maybeCrossName" : "scalafmt-core_2.13" }, "version" : "3.8.3", "sbtVersion" : null, "scalaVersion" : null, "configurations" : null } ], "newerVersions" : [ "3.8.4" ], "newerGroupId" : null, "newerArtifactId" : null } }, "Labels" : [ "library-update", "early-semver-patch", "semver-spec-patch", "commit-count:n:3" ] } -->
1 parent ef3247b commit 0037d01

File tree

26 files changed

+80
-62
lines changed

26 files changed

+80
-62
lines changed

β€Ž.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ f81a64c5ec05830cf56f08da300bed96a1fed672
1212

1313
# Scala Steward: Reformat with scalafmt 3.8.2
1414
ffed0cfc061504b1557427e58ba5ab65fb897aa7
15+
16+
# Scala Steward: Reformat with scalafmt 3.8.4
17+
1bb8fdbb77055814317751f20973920c56d2432f

β€Ž.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.8.3"
1+
version = "3.8.4"
22
runner.dialect = scala3
33
rewrite.rules = [SortModifiers, Imports]
44
rewrite.imports.expand = true

β€Žkyo-bench/src/main/scala/kyo/bench/TestHttpServer.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ object TestHttpServer:
6767
Runtime.getRuntime().addShutdownHook(new Thread:
6868
override def run(): Unit =
6969
log(port, "stopping")
70-
process.destroy()
71-
)
70+
process.destroy())
7271
redirect(process.getInputStream, System.out)
7372
redirect(process.getErrorStream, System.err)
7473

@@ -91,8 +90,7 @@ object TestHttpServer:
9190
while { line = reader.readLine(); line != null } do
9291
writer.println(s"[TestHttpServer] $line")
9392
writer.flush()
94-
end run
95-
)
93+
end run)
9694
thread.setDaemon(true)
9795
thread.start()
9896
end redirect

β€Žkyo-bench/src/main/scala/kyo/bench/ZIORuntime.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ extension (parent: ZLayer[Any, Any, Any])
88
parent ++ child
99
else
1010
child
11+
end extension
1112

1213
object ZIORuntime:
1314
def fromLayerWithFinalizer[R](layer: ZLayer[Any, Any, R]): (Runtime[R], () => Unit) =

β€Žkyo-caliban/src/test/scala/kyo/ResolversTest.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ class ResolverTest extends Test:
6666
yield v + s.length
6767
)))
6868
val layer = ZLayer.succeed(new Runner[Environment]:
69-
def apply[A: Flat](v: A < Environment): Task[A] = ZIOs.run(Env.run("kyo")(Var.run(0)(v)))
70-
)
69+
def apply[A: Flat](v: A < Environment): Task[A] = ZIOs.run(Env.run("kyo")(Var.run(0)(v))))
7170
for
7271
interpreter <- api.interpreter
7372
res <- interpreter.execute("{ k }").provide(layer)

β€Žkyo-combinators/shared/src/main/scala/kyo/Combinators.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ extension [A, S](effect: Ack < (Emit[Chunk[A]] & S))
912912
* Stream representation of original effect
913913
*/
914914
def emitToStream: Stream[A, S] = Stream(effect)
915+
end extension
915916

916917
private case object FinalEmit
917918

β€Žkyo-combinators/shared/src/main/scala/kyo/Constructors.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,10 @@ extension (kyoObject: Kyo.type)
389389
* @return
390390
* An effect that retrieves the dependency from Env and applies the function to it
391391
*/
392-
def serviceWith[D](using Tag[D], Frame): [A, S] => (D => A < S) => A < (S & Env[D]) =
392+
def serviceWith[D](using
393+
Tag[D],
394+
Frame
395+
): [A, S] => (D => A < S) => A < (S & Env[D]) =
393396
[A, S] => (fn: D => (A < S)) => service[D].map(d => fn(d))
394397

395398
/** Sleeps for a given duration using Async.

β€Žkyo-combinators/shared/src/test/scala/kyo/FiberCombinatorTest.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ class FiberCombinatorTest extends Test:
6262
}.map { handledEffect =>
6363
assert(handledEffect match
6464
case Result.Fail(_: Timeout) => true
65-
case _ => false
66-
)
65+
case _ => false)
6766
}
6867
}
6968
}

β€Žkyo-core/jvm/src/main/scala/kyo/StreamCompression.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ object StreamCompression:
270270
compressionLevel match
271271
case CompressionLevel.BestSpeed => 0x4
272272
case CompressionLevel.BestCompression => 0x2
273-
case _ => 0
273+
case _ =>
274+
0
274275
, // XFL: Extra flags
275276
0xff // OS: Operating System
276277
).map(_.toByte)

β€Žkyo-core/shared/src/main/scala/kyo/scheduler/IOTask.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ sealed private[kyo] class IOTask[Ctx, E, A] private (
4040
try
4141
curr = Boundary.restoring(trace, this) {
4242
ArrowEffect.handlePartial(erasedAbortTag, Tag[Async.Join], curr, context)(
43-
stop = shouldPreempt(),
43+
stop =
44+
shouldPreempt(),
4445
[C] =>
4546
(input, cont) =>
4647
locally {

0 commit comments

Comments
Β (0)