From 4455b0639468da7a61fac71cee32e859caee7e00 Mon Sep 17 00:00:00 2001 From: Lucas Satabin Date: Thu, 24 Oct 2024 11:33:51 +0200 Subject: [PATCH] Make Scala 3 happy --- .../scala/fs2/data/text/render/internal/StreamPrinter.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/shared/src/main/scala/fs2/data/text/render/internal/StreamPrinter.scala b/text/shared/src/main/scala/fs2/data/text/render/internal/StreamPrinter.scala index ea54a123..0d6aff38 100644 --- a/text/shared/src/main/scala/fs2/data/text/render/internal/StreamPrinter.scala +++ b/text/shared/src/main/scala/fs2/data/text/render/internal/StreamPrinter.scala @@ -220,7 +220,7 @@ private[render] class StreamPrinter[F[_], Event](width: Int, indentSize: Int)(im private def renderLine(pos: Int, ctx: RenderingContext, chunkAcc: StringBuilder): Unit = if (ctx.fit == 0) { ctx.hpl = pos + width ctx.col = ctx.lines.head.size - chunkAcc.append('\n').append(ctx.lines.head): Unit + val _ = chunkAcc.append('\n').append(ctx.lines.head) } else { ctx.col += 1 chunkAcc.append(' ') @@ -230,7 +230,7 @@ private[render] class StreamPrinter[F[_], Event](width: Int, indentSize: Int)(im if (ctx.fit == 0) { ctx.hpl = pos + width ctx.col = ctx.lines.head.size - chunkAcc.append('\n').append(ctx.lines.head): Unit + val _ = chunkAcc.append('\n').append(ctx.lines.head) } private def renderGroupBegin(pos: Position, ctx: RenderingContext): Unit =