Skip to content

Commit

Permalink
Use safer optional values, and other enabling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 24, 2025
1 parent c0b41b9 commit a0d0f03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/probably.Suite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import vacuous.*
import language.adhocExtensions

abstract class Suite(suiteName: Text) extends Testable(suiteName):
val suiteIo = safely(stdioSources.virtualMachine.ansi).vouch(using Unsafe)
val suiteIo = safely(stdioSources.virtualMachine.ansi).vouch

given runner: Runner[Report] =
given Stdio = suiteIo
Expand Down
2 changes: 1 addition & 1 deletion src/core/probably.Report.scala
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class Report(using Environment):
e"${opsPerS(s.benchmark)}")
::: comparisons.map: c =>
import Baseline.*
val baseline = c.benchmark.baseline.vouch(using Unsafe)
val baseline = c.benchmark.baseline.vouch
Column(e"$Bold($CadetBlue(${c.test.id}))", textAlign = TextAlignment.Right):
(bench: ReportLine.Bench) =>
def op(left: Double, right: Double): Double = baseline.mode match
Expand Down

0 comments on commit a0d0f03

Please sign in to comment.