Skip to content

Commit d0a4929

Browse files
authored
Fix missing static keyword (#28)
1 parent 2db9e9d commit d0a4929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/InstrumentationBaggage/Baggage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ extension Baggage {
242242
/// To access the task-local value, use `Baggage.current`.
243243
///
244244
/// SeeAlso: [Swift Task Locals](https://developer.apple.com/documentation/swift/tasklocal)
245-
func withValue<T>(_ value: Baggage?, operation: () throws -> T) rethrows -> T {
245+
public static func withValue<T>(_ value: Baggage?, operation: () throws -> T) rethrows -> T {
246246
try Baggage.$current.withValue(value, operation: operation)
247247
}
248248

@@ -251,7 +251,7 @@ extension Baggage {
251251
/// To access the task-local value, use `Baggage.current`.
252252
///
253253
/// SeeAlso: [Swift Task Locals](https://developer.apple.com/documentation/swift/tasklocal)
254-
func withValue<T>(_ value: Baggage?, operation: () async throws -> T) async rethrows -> T {
254+
public static func withValue<T>(_ value: Baggage?, operation: () async throws -> T) async rethrows -> T {
255255
try await Baggage.$current.withValue(value, operation: operation)
256256
}
257257
}

0 commit comments

Comments
 (0)