File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ let package = Package(
15
15
) ,
16
16
] ,
17
17
dependencies: [
18
- . package ( url: " https://github.com/google/swift-benchmark " , from: " 0.1.0 " ) ,
18
+ . package ( url: " https://github.com/google/swift-benchmark " , from: " 0.1.0 " )
19
19
] ,
20
20
targets: [
21
21
. target(
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ extension Parser {
67
67
Input == Slice < UnsafeBufferPointer < UTF8 . CodeUnit > >
68
68
{
69
69
input. utf8. withContiguousStorageIfAvailable { input -> Output ? in
70
- var input = input [ ... ]
71
- return self . parse ( & input)
70
+ var input = input [ ... ]
71
+ return self . parse ( & input)
72
72
} ? . flatMap { $0 }
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ let boolSuite = BenchmarkSuite(name: "Bool") { suite in
31
31
name: " Scanner.scanBool " ,
32
32
setUp: { scanner. currentIndex = input. startIndex } ,
33
33
run: {
34
- output = scanner. scanString ( " true " ) . map { _ in true }
34
+ output =
35
+ scanner. scanString ( " true " ) . map { _ in true }
35
36
?? scanner. scanString ( " false " ) . map { _ in false }
36
37
} ,
37
38
tearDown: { precondition ( output == true ) }
You can’t perform that action at this time.
0 commit comments