Skip to content

Commit

Permalink
Merge pull request #483 from scala-steward/update/scalafmt-core-3.8.2
Browse files Browse the repository at this point in the history
Update scalafmt-core to 3.8.2
  • Loading branch information
vigoo committed Jul 7, 2024
2 parents 77bb418 + 186bedc commit d863df7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ dad5959f00effa5e744ec6e598fbe7f35b9d69e3

# Scala Steward: Reformat with scalafmt 3.8.0
b21dd81cb00c6caae3a508dc96adedb2e6eefe1d

# Scala Steward: Reformat with scalafmt 3.8.2
08e9ff21bc91b63d2879e72a31d322b46a1d2c10
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.1
version = 3.8.2

runner.dialect = scala213source3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class SerializerState private (
idsByString.get(value) match {
case Some(id) => StringAlreadyStored(id)
case None =>
val id = lastStringId.next
val id = lastStringId.next
lastStringId = id
stringsById += (id -> value)
idsByString += (value -> id)
Expand All @@ -30,7 +30,7 @@ final class SerializerState private (
idsByRef.get(value) match {
case Some(id) => RefAlreadyStored(id)
case None =>
val id = lastRefId.next
val id = lastRefId.next
lastRefId = id
refsById += (id -> value)
idsByRef += (value -> id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package object schemas {
implicit lazy val builtInThrowableCodecPlaceholder: Schema[Throwable] =
Schema.fail("__builtin_throwable_codec__")

val builtInArrayCodecTypeId: TypeId = TypeId.parse("scala.Array")
val builtInArrayCodecTypeId: TypeId = TypeId.parse("scala.Array")
implicit def builtInArrayCodec[A](implicit elemSchema: Schema[A]): Schema[Array[A]] =
Schema.CaseClass1[A, Array[A]](
builtInArrayCodecTypeId,
Expand Down Expand Up @@ -61,7 +61,7 @@ package object schemas {
)
)

val typeRegistryTypeId: TypeId = TypeId.parse("io.github.vigoo.desert.TypeRegistry")
val typeRegistryTypeId: TypeId = TypeId.parse("io.github.vigoo.desert.TypeRegistry")
def codecFromTypeRegistry[A]: Schema[A] =
Schema.CaseClass1[Nothing, A](
typeRegistryTypeId,
Expand Down

0 comments on commit d863df7

Please sign in to comment.