From b5a8d66151d7a0fb0d248ac9253dcaf281c43d58 Mon Sep 17 00:00:00 2001 From: Scala Steward <43047562+scala-steward@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:53:45 +0100 Subject: [PATCH] Update scalafmt-core to 3.8.4 (#383) * Update scalafmt-core to 3.8.4 * Reformat with scalafmt 3.8.4 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.8.4' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ .scalafmt.conf | 2 +- project/ReactiveMongo.scala | 2 +- reactive-mongo/src/main/scala/Request.scala | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index ed6ca7e4..c9d10479 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -12,3 +12,6 @@ e247ccdc24dd53dbaa9b75d0beae2d59810ce899 # Scala Steward: Reformat with scalafmt 3.8.0 12851535006fc5c86247728feda75a9e896ce34f + +# Scala Steward: Reformat with scalafmt 3.8.4 +de6cf000115f64f2d3280cdeeb6f29dd0a14983a diff --git a/.scalafmt.conf b/.scalafmt.conf index 2bd94583..17eeca27 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.8.3 +version = 3.8.4 runner.dialect = Scala213Source3 newlines.alwaysBeforeElseAfterCurlyIf = false diff --git a/project/ReactiveMongo.scala b/project/ReactiveMongo.scala index 2eac2ca7..13f97157 100644 --- a/project/ReactiveMongo.scala +++ b/project/ReactiveMongo.scala @@ -34,7 +34,7 @@ final class ReactiveMongo { self => if (scalaBinaryVersion.value == "3") { "org.typelevel" %% "shapeless3-test" % "3.4.3" } else { - "com.chuusai" %% "shapeless" % "2.3.11", + "com.chuusai" %% "shapeless" % "2.3.11" } } ) diff --git a/reactive-mongo/src/main/scala/Request.scala b/reactive-mongo/src/main/scala/Request.scala index e8f6917f..92cef446 100644 --- a/reactive-mongo/src/main/scala/Request.scala +++ b/reactive-mongo/src/main/scala/Request.scala @@ -406,7 +406,9 @@ object CountRequest { /** * @return Collection name -> query body (count BSON properties) */ - def unapply(request: Request): Option[(String, Int, List[(String, BSONValue)])] = + def unapply( + request: Request + ): Option[(String, Int, List[(String, BSONValue)])] = request match { case CommandRequest( ("count", BSONString(col)) ::