Skip to content

Commit

Permalink
Merge pull request #1169 from scala-steward/update/scalafmt-core-3.7.3
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.7.3
  • Loading branch information
mergify[bot] authored Mar 30, 2023
2 parents ebc5305 + 5859ea8 commit ad3f5bd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.7.3
2ab9b53fc2fbe46fdffbed46271d3896d84ac880
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.2
version = 3.7.3
runner.dialect = scala213
maxColumn = 100
docstrings.style = keep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -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]")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit ad3f5bd

Please # to comment.