Skip to content

Commit

Permalink
Merge pull request #1185 from scala-steward/update/scalafmt-core-3.9.3
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.9.3
  • Loading branch information
sh0hei authored Mar 8, 2025
2 parents 034910f + 75a3ba8 commit fac4826
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ e4af65308dbd509e021f2b50c31d6bc5fda41d4a

# Scala Steward: Reformat with scalafmt 3.8.5
d9458f6a8812d77c07b3ef275c3dfaff3390d4a0

# Scala Steward: Reformat with scalafmt 3.9.3
07a8dced3008b511567637a1a11c6833e50c0f82
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.6
version = 3.9.3

runner.dialect = scala213

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,18 +434,18 @@ class AstSchemaMaterializer[Ctx] private (
var iteration = 0

while ({
prevCount = typeDefCache.size
iteration += 1
prevCount = typeDefCache.size
iteration += 1

typeDefCache.forEachValue {
case o: ObjectLikeType[_, _] => o.fields
case o: InputObjectType[_] => o.fields
case _ => // do nothing
}
typeDefCache.forEachValue {
case o: ObjectLikeType[_, _] => o.fields
case o: InputObjectType[_] => o.fields
case _ => // do nothing
}

newCount = typeDefCache.size
prevCount != newCount && iteration < 20
}) ()
newCount = typeDefCache.size
prevCount != newCount && iteration < 20
}) ()
}

def getTypeFromExistingType(origin: MatOrigin, tpe: OutputType[_]): OutputType[Any] = tpe match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ object SortedArraySet {
members.set(into, first_from)
into += 1
while ({
from += 1
from < members.size() && members.get(from) == first_from
}) ()
from += 1
from < members.size() && members.get(from) == first_from
}) ()
}
members.subList(into, members.size()).clear()
}
Expand Down

0 comments on commit fac4826

Please sign in to comment.