Skip to content

Commit

Permalink
Make Scala 3 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
satabin committed Oct 24, 2024
1 parent 5b52c89 commit 4455b06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ')
Expand All @@ -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 =
Expand Down

0 comments on commit 4455b06

Please sign in to comment.