Skip to content

Commit eda3e2e

Browse files
Update scalafmt-core to 2.4.2 (#12)
Co-authored-by: Filipe Regadas <filiperegadas@gmail.com>
1 parent 29830f5 commit eda3e2e

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "2.3.2"
1+
version = "2.4.2"

cli/src/main/scala/tfr/Cli.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ object Cli extends CaseApp[Options] {
5151
case Nil =>
5252
Stream.resource(Resources.stdin[IO]) :: Nil
5353
case l =>
54-
l.iterator.map { path =>
55-
Stream.resource(Resources.file[IO](path))
56-
}.toList
54+
l.iterator.map { path => Stream.resource(Resources.file[IO](path)) }.toList
5755
}
5856

5957
val streams = resources.map { resource =>

core/src/main/scala/tfr/TFRecord.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ object TFRecord {
3636

3737
private[this] val HeaderLength: Int =
3838
(java.lang.Long.SIZE + java.lang.Integer.SIZE) / java.lang.Byte.SIZE
39-
private[this] val FooterLength
40-
: Int = java.lang.Integer.SIZE / java.lang.Byte.SIZE
39+
private[this] val FooterLength: Int =
40+
java.lang.Integer.SIZE / java.lang.Byte.SIZE
4141
private[this] val Crc32c = Hashing.crc32c()
4242

4343
private def mask(crc: Int): Int = ((crc >>> 15) | (crc << 17)) + 0xa282ead8

project/Dependencies.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ object Dependencies {
77
lazy val catsCore = "org.typelevel" %% "cats-core" % "2.1.1"
88
lazy val fs2Io = "co.fs2" %% "fs2-io" % "2.2.2"
99
lazy val caseApp = "com.github.alexarchambault" %% "case-app" % "2.0.0-M13"
10-
lazy val kindProjector = "org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full
10+
lazy val kindProjector =
11+
"org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full
1112
lazy val gcs = "com.google.cloud" % "google-cloud-storage" % "1.105.2"
1213
lazy val circeCore = "io.circe" %% "circe-core" % "0.13.0"
1314
lazy val munit = "org.scalameta" %% "munit" % "0.5.2"

0 commit comments

Comments
 (0)