diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..ed3f8ca --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.6 +b2a1e70e4a41f8ebe12704b5d933f7ea902998be diff --git a/.scalafmt.conf b/.scalafmt.conf index d279632..262a069 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.3" +version = "3.8.6" preset = "defaultWithAlign" runner.dialect = "scala213" diff --git a/pekko-http-jackson/src/main/scala/com/github/pjfanning/pekkohttpjackson/JacksonSupport.scala b/pekko-http-jackson/src/main/scala/com/github/pjfanning/pekkohttpjackson/JacksonSupport.scala index 42657ba..8731efe 100644 --- a/pekko-http-jackson/src/main/scala/com/github/pjfanning/pekkohttpjackson/JacksonSupport.scala +++ b/pekko-http-jackson/src/main/scala/com/github/pjfanning/pekkohttpjackson/JacksonSupport.scala @@ -100,8 +100,8 @@ object JacksonSupport extends JacksonSupport { case "shared-concurrent-deque" => JsonRecyclerPools.sharedConcurrentDequePool() case "bounded" => JsonRecyclerPools.newBoundedPool(cfg.getInt("buffer-recycler.bounded-pool-size")) - case "non-recycling" => JsonRecyclerPools.nonRecyclingPool() - case other => throw new IllegalArgumentException(s"Unknown recycler-pool: $other") + case "non-recycling" => JsonRecyclerPools.nonRecyclingPool() + case other => throw new IllegalArgumentException(s"Unknown recycler-pool: $other") } val defaultObjectMapper: ObjectMapper with ClassTagExtensions = createObjectMapper(jacksonConfig) diff --git a/pekko-http-upickle/src/test/scala/com/github/pjfanning/pekkohttpupickle/UpickleCustomizationSupportSpec.scala b/pekko-http-upickle/src/test/scala/com/github/pjfanning/pekkohttpupickle/UpickleCustomizationSupportSpec.scala index f2228e7..f253697 100644 --- a/pekko-http-upickle/src/test/scala/com/github/pjfanning/pekkohttpupickle/UpickleCustomizationSupportSpec.scala +++ b/pekko-http-upickle/src/test/scala/com/github/pjfanning/pekkohttpupickle/UpickleCustomizationSupportSpec.scala @@ -48,12 +48,11 @@ final class UpickleCustomizationSupportSpec import UpickleFoo._ "UpickleCustomizationSupport" should { - "support custom configuration" in { - Marshal(123) - .to[RequestEntity] - .flatMap(Unmarshal(_).to[String]) - .map(_ shouldBe "foo") - } + "support custom configuration" in + Marshal(123) + .to[RequestEntity] + .flatMap(Unmarshal(_).to[String]) + .map(_ shouldBe "foo") } override protected def afterAll() = { diff --git a/pekko-http-zio-json/src/main/scala/com/github/pjfanning/pekkohttpziojson/ZioJsonSupport.scala b/pekko-http-zio-json/src/main/scala/com/github/pjfanning/pekkohttpziojson/ZioJsonSupport.scala index 3c61523..ab7d682 100644 --- a/pekko-http-zio-json/src/main/scala/com/github/pjfanning/pekkohttpziojson/ZioJsonSupport.scala +++ b/pekko-http-zio-json/src/main/scala/com/github/pjfanning/pekkohttpziojson/ZioJsonSupport.scala @@ -103,12 +103,10 @@ trait ZioJsonSupport { jd: JsonDecoder[A], rt: zio.Runtime[Any] ): Unmarshaller[ByteString, A] = - Unmarshaller(_ => - bs => { - val decoded = jd.decodeJsonStreamInput(ZStream.fromIterable(bs)) - Unsafe.unsafeCompat(implicit u => rt.unsafe.runToFuture(decoded)) - } - ) + Unmarshaller { _ => bs => + val decoded = jd.decodeJsonStreamInput(ZStream.fromIterable(bs)) + Unsafe.unsafeCompat(implicit u => rt.unsafe.runToFuture(decoded)) + } /** * `A` => HTTP entity