Skip to content

Commit

Permalink
Update scalafmt-core to 2.4.2 (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Filipe Regadas <filiperegadas@gmail.com>
  • Loading branch information
scala-steward and regadas authored Mar 14, 2020
1 parent 29830f5 commit eda3e2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "2.3.2"
version = "2.4.2"
4 changes: 1 addition & 3 deletions cli/src/main/scala/tfr/Cli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ object Cli extends CaseApp[Options] {
case Nil =>
Stream.resource(Resources.stdin[IO]) :: Nil
case l =>
l.iterator.map { path =>
Stream.resource(Resources.file[IO](path))
}.toList
l.iterator.map { path => Stream.resource(Resources.file[IO](path)) }.toList
}

val streams = resources.map { resource =>
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/tfr/TFRecord.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ object TFRecord {

private[this] val HeaderLength: Int =
(java.lang.Long.SIZE + java.lang.Integer.SIZE) / java.lang.Byte.SIZE
private[this] val FooterLength
: Int = java.lang.Integer.SIZE / java.lang.Byte.SIZE
private[this] val FooterLength: Int =
java.lang.Integer.SIZE / java.lang.Byte.SIZE
private[this] val Crc32c = Hashing.crc32c()

private def mask(crc: Int): Int = ((crc >>> 15) | (crc << 17)) + 0xa282ead8
Expand Down
3 changes: 2 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ object Dependencies {
lazy val catsCore = "org.typelevel" %% "cats-core" % "2.1.1"
lazy val fs2Io = "co.fs2" %% "fs2-io" % "2.2.2"
lazy val caseApp = "com.github.alexarchambault" %% "case-app" % "2.0.0-M13"
lazy val kindProjector = "org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full
lazy val kindProjector =
"org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full
lazy val gcs = "com.google.cloud" % "google-cloud-storage" % "1.105.2"
lazy val circeCore = "io.circe" %% "circe-core" % "0.13.0"
lazy val munit = "org.scalameta" %% "munit" % "0.5.2"
Expand Down

0 comments on commit eda3e2e

Please sign in to comment.