Skip to content

Commit 97b2826

Browse files
committed
Inline
1 parent fe25d00 commit 97b2826

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Sources/URLRouting/PathBuilder.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public enum PathBuilder {
3030
self.componentParser = componentParser
3131
}
3232

33+
@inlinable
3334
public func parse(_ input: inout URLRequestData) throws -> ComponentParser.Output {
3435
guard input.path.count >= 1 else { throw RoutingError() }
3536
return try self.componentParser.parse(input.path.removeFirst())
@@ -38,6 +39,7 @@ public enum PathBuilder {
3839
}
3940

4041
extension PathBuilder.Component: ParserPrinter where ComponentParser: ParserPrinter {
42+
@inlinable
4143
public func print(_ output: ComponentParser.Output, into input: inout URLRequestData) rethrows {
4244
try input.path.prepend(self.componentParser.print(output))
4345
}

Sources/swift-url-routing-benchmark/Routing.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Benchmark
22
import Foundation
3-
import Parsing
43
import URLRouting
54

65
#if canImport(FoundationNetworking)

Sources/swift-url-routing-benchmark/main.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Benchmark
2-
import Parsing
32

43
Benchmark.main(
54
[

0 commit comments

Comments
 (0)