Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.1 (#104)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.8.1

* Reformat with scalafmt 3.8.1

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.8.1' to .git-blame-ignore-revs
  • Loading branch information
scala-steward authored Mar 30, 2024
1 parent eb11a1b commit 841ee73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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 @@ cd88dbd39d341e4d83dbaed57b1fe497159ba0be

# Scala Steward: Reformat with scalafmt 3.8.0
ac01058463c34eb216d3d3c0500dfce038fc4cff

# Scala Steward: Reformat with scalafmt 3.8.1
fade5fe3272078547e5ca2a7ef80a085a8d24b24
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
style = defaultWithAlign
maxColumn = 120
version = 3.8.0
version = 3.8.1
assumeStandardLibraryStripMargin = true
align.stripMargin = true
runner.dialect = scala3
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ class SerializerSnapshotTest extends AnyFlatSpec with Matchers {

it should "be compatible after snapshot deserialization in different classloader" in {
val ser = deriveTypeInformation[SimpleClass1].createSerializer(null)
val cl = newClassLoader(classOf[SimpleClass1])
val cl = newClassLoader(classOf[SimpleClass1])
try {
val restored = roundtripSerializer(ser, cl)
val restored = roundtripSerializer(ser, cl)
val compatibility = restored.snapshotConfiguration().resolveSchemaCompatibility(ser)
compatibility shouldBe Symbol("compatibleAsIs")
} finally {
Expand All @@ -82,7 +82,7 @@ class SerializerSnapshotTest extends AnyFlatSpec with Matchers {
}

def roundtripSerializer[T](ser: TypeSerializer[T], cl: ClassLoader = getClass.getClassLoader): TypeSerializer[T] = {
val snap = ser.snapshotConfiguration()
val snap = ser.snapshotConfiguration()
val buffer = new ByteArrayOutputStream()
val output = new DataOutputViewStreamWrapper(buffer)
snap.writeSnapshot(output)
Expand Down

0 comments on commit 841ee73

Please sign in to comment.