From 5edeef53796d3d33597e50a9b613da03658c5fdc Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Sat, 14 Dec 2024 08:50:48 +0100 Subject: [PATCH] Whitespace changes --- src/bench/bench.scala | 6 ++++-- src/core/gossamer-core.scala | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bench/bench.scala b/src/bench/bench.scala index 0e2e9b5..059d4a4 100644 --- a/src/bench/bench.scala +++ b/src/bench/bench.scala @@ -29,10 +29,12 @@ object Benchmarks extends Suite(t"Gossamer Benchmarks"): deferCompilation: import gossamer.* Group(List(Person("Jack", 30))).show - .benchmark(warmup = 30000L, duration = 30000L) + + . benchmark(warmup = 30000L, duration = 30000L) test(t"Resolve a Debug instance"): deferCompilation: import gossamer.* Group(List(Person("Jack", 30))).inspect - .benchmark(warmup = 30000L, duration = 30000L) + + . benchmark(warmup = 30000L, duration = 30000L) diff --git a/src/core/gossamer-core.scala b/src/core/gossamer-core.scala index 428c453..6bf4f3d 100644 --- a/src/core/gossamer-core.scala +++ b/src/core/gossamer-core.scala @@ -81,7 +81,8 @@ extension (bytes: Bytes) bytes.map: b => val i = b&0xff (if i%0x80 <= 0x20 || i == 0x7f then i + 0x100 else i).toChar - .mkString.tt + + . mkString.tt extension [TextType](text: TextType) def cut[DelimiterType](delimiter: DelimiterType, limit: Int = Int.MaxValue) @@ -309,7 +310,8 @@ extension (text: into Text) for j <- 1 to n do dist(j) = (old(j - 1) + (if text.s.charAt(i - 1) == other.s.charAt(j - 1) then 0 else 1)) - .min(old(j) + 1).min(dist(j - 1) + 1) + + . min(old(j) + 1).min(dist(j - 1) + 1) for j <- 0 to n do old(j) = dist(j)