Fix compilation on nightly-main Swift, which has new optional type inference (#900)

This commit is contained in:
Si Beaumont
2026-03-24 14:29:58 +00:00
committed by GitHub
parent 3b57e00556
commit 3a5b74a587
@@ -22,7 +22,7 @@ import Tracing
extension RequestBag.LoopBoundState {
/// Starts the "overall" Span that encompases the beginning of a request until receipt of the head part of the response.
mutating func startRequestSpan<T>(tracer: T?) {
mutating func startRequestSpan(tracer: (any Sendable)?) {
guard #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *),
let tracer = tracer as! (any Tracer)?
else {