diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index cab90ec..70ac819 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.7.1 cf050cfeb9164f45d77febbd4e217487aafaa549 + +# Scala Steward: Reformat with scalafmt 3.7.2 +164a312bbee6f6c8644b64c3e1dd28f1256ff0bf diff --git a/.scalafmt.conf b/.scalafmt.conf index 54631b0..ea79da3 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version ="3.7.1" +version ="3.7.2" runner.dialect = scala213 diff --git a/modules/core/src/main/scala-2.13/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala b/modules/core/src/main/scala-2.13/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala index 5e8bfa9..d952a36 100644 --- a/modules/core/src/main/scala-2.13/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala +++ b/modules/core/src/main/scala-2.13/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala @@ -5,6 +5,7 @@ private[decoding] trait ElementLiteralInstances { decoder .emap((history, a) => if (a == valueOfL.value) Right(valueOfL.value) - else Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), + else + Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), ) } diff --git a/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/AttributeLiteralInstances.scala b/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/AttributeLiteralInstances.scala index d0fc926..ccf8440 100644 --- a/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/AttributeLiteralInstances.scala +++ b/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/AttributeLiteralInstances.scala @@ -8,6 +8,7 @@ private[decoding] trait AttributeLiteralInstances { decoder .emap((history, a) => if (a == valueOfL.value) Right(valueOfL.value) - else Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), + else + Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), ) } diff --git a/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala b/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala index 5e8bfa9..d952a36 100644 --- a/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala +++ b/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/ElementLiteralInstances.scala @@ -5,6 +5,7 @@ private[decoding] trait ElementLiteralInstances { decoder .emap((history, a) => if (a == valueOfL.value) Right(valueOfL.value) - else Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), + else + Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), ) } diff --git a/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/TextLiteralInstances.scala b/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/TextLiteralInstances.scala index 32a1c61..f4f1fc5 100644 --- a/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/TextLiteralInstances.scala +++ b/modules/core/src/main/scala-3/ru/tinkoff/phobos/decoding/TextLiteralInstances.scala @@ -5,6 +5,7 @@ private[decoding] trait TextLiteralInstances { decoder .emap((history, a) => if (a == valueOfL.value) Right(valueOfL.value) - else Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), + else + Left(DecodingError(s"Failed to decode literal type. Expected: ${valueOfL.value}, actual: $a", history, None)), ) }