diff --git a/Sources/swift-format/Subcommands/Format.swift b/Sources/swift-format/Subcommands/Format.swift index 7a0378612..548e30e18 100644 --- a/Sources/swift-format/Subcommands/Format.swift +++ b/Sources/swift-format/Subcommands/Format.swift @@ -40,7 +40,7 @@ extension SwiftFormatCommand { } func run() throws { - try performanceMeasurementOptions.countingInstructionsIfRequested { + try performanceMeasurementOptions.printingInstructionCountIfRequested() { let frontend = FormatFrontend(lintFormatOptions: formatOptions, inPlace: inPlace) frontend.run() if frontend.diagnosticsEngine.hasErrors { throw ExitCode.failure } diff --git a/Sources/swift-format/Subcommands/Lint.swift b/Sources/swift-format/Subcommands/Lint.swift index 985100647..43b3872a9 100644 --- a/Sources/swift-format/Subcommands/Lint.swift +++ b/Sources/swift-format/Subcommands/Lint.swift @@ -32,7 +32,7 @@ extension SwiftFormatCommand { var performanceMeasurementOptions: PerformanceMeasurementsOptions func run() throws { - try performanceMeasurementOptions.countingInstructionsIfRequested { + try performanceMeasurementOptions.printingInstructionCountIfRequested { let frontend = LintFrontend(lintFormatOptions: lintOptions) frontend.run()