Skip to content

Commit 63c3925

Browse files
authored
Merge pull request #631 from kimdv/kimdv/fix-building-error
Fix building error
2 parents 0c19814 + c7d86f1 commit 63c3925

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/swift-format/Subcommands/Format.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extension SwiftFormatCommand {
4040
}
4141

4242
func run() throws {
43-
try performanceMeasurementOptions.countingInstructionsIfRequested {
43+
try performanceMeasurementOptions.printingInstructionCountIfRequested() {
4444
let frontend = FormatFrontend(lintFormatOptions: formatOptions, inPlace: inPlace)
4545
frontend.run()
4646
if frontend.diagnosticsEngine.hasErrors { throw ExitCode.failure }

Sources/swift-format/Subcommands/Lint.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension SwiftFormatCommand {
3232
var performanceMeasurementOptions: PerformanceMeasurementsOptions
3333

3434
func run() throws {
35-
try performanceMeasurementOptions.countingInstructionsIfRequested {
35+
try performanceMeasurementOptions.printingInstructionCountIfRequested {
3636
let frontend = LintFrontend(lintFormatOptions: lintOptions)
3737
frontend.run()
3838

0 commit comments

Comments
 (0)