From c0acdb42a088385a9e617be1fa1ab36b03278e05 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Thu, 30 Mar 2023 16:53:54 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.7.3 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index ce8d58d0c..59418b17c 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.7.2 +version = 3.7.3 runner.dialect = scala213 maxColumn = 100 docstrings.style = keep From 2ab9b53fc2fbe46fdffbed46271d3896d84ac880 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Thu, 30 Mar 2023 16:54:15 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.7.3 Executed command: scalafmt --non-interactive --- .../src/main/scala-3.0+/eu/timepit/refined/boolean.scala | 6 +++--- .../scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala | 2 +- .../src/main/scala-3.0+/eu/timepit/refined/types/net.scala | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala b/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala index 55a71b64e..1e766195f 100644 --- a/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala +++ b/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/boolean.scala @@ -297,8 +297,8 @@ private[refined] trait BooleanInference3 { p1.adapt("substitutionInConjunction(%s)") implicit def disjunctionTautologyElimination[A, B, C](implicit - p1: A ==> C, - p2: B ==> C - ): (A Or B) ==> C = + p1: A ==> C, + p2: B ==> C + ): (A Or B) ==> C = Inference.combine(p1, p2, "disjunctionElimination") } diff --git a/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala b/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala index 63b7c7466..03ca6dea2 100644 --- a/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala +++ b/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/internal/WitnessAs.scala @@ -81,7 +81,7 @@ trait WitnessAs1 { inline given doubleWitnessAsFloat[A <: Double]: WitnessAs[A, Float] = inline constValue[A] match { - case a if a >= -3.4028235E38 && a <= 3.4028235E38 => WitnessAs(a, a.toFloat) + case a if a >= -3.4028235e38 && a <= 3.4028235e38 => WitnessAs(a, a.toFloat) case a => error(s"WitnessAs: $a is not in [Float.MinValue, Float.MaxValue]") } diff --git a/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/types/net.scala b/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/types/net.scala index 0da199e59..6bf760efa 100644 --- a/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/types/net.scala +++ b/modules/core/shared/src/main/scala-3.0+/eu/timepit/refined/types/net.scala @@ -67,7 +67,8 @@ object net { /** A `String` representing a valid IPv4 in a private network according to RFC1918, RFC5737, RFC3927 or RFC2544 */ type PrivateNetwork = - String Refined (Rfc1918PrivateSpec Or Rfc5737TestnetSpec Or Rfc3927LocalLinkSpec Or Rfc2544BenchmarkSpec) + String Refined + (Rfc1918PrivateSpec Or Rfc5737TestnetSpec Or Rfc3927LocalLinkSpec Or Rfc2544BenchmarkSpec) object PrivateNetworks { From 5859ea8cc8fa67da740a476335076f16de25b3f4 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Thu, 30 Mar 2023 16:54:15 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.7.3' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..fd5e5b9b2 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.7.3 +2ab9b53fc2fbe46fdffbed46271d3896d84ac880