@@ -35,12 +35,12 @@ public struct TestSpan: Span {
35
35
}
36
36
37
37
public var isRecording : Bool {
38
- _isRecording. withValue ( \ . self )
38
+ _isRecording. withValue { $0 }
39
39
}
40
40
41
41
public var operationName : String {
42
42
get {
43
- _operationName. withValue ( \ . self )
43
+ _operationName. withValue { $0 }
44
44
}
45
45
nonmutating set {
46
46
assertIsRecording ( )
@@ -50,7 +50,7 @@ public struct TestSpan: Span {
50
50
51
51
public var attributes : SpanAttributes {
52
52
get {
53
- _attributes. withValue ( \ . self )
53
+ _attributes. withValue { $0 }
54
54
}
55
55
nonmutating set {
56
56
assertIsRecording ( )
@@ -59,7 +59,7 @@ public struct TestSpan: Span {
59
59
}
60
60
61
61
public var events : [ SpanEvent ] {
62
- _events. withValue ( \ . self )
62
+ _events. withValue { $0 }
63
63
}
64
64
65
65
public func addEvent( _ event: SpanEvent ) {
@@ -68,7 +68,7 @@ public struct TestSpan: Span {
68
68
}
69
69
70
70
public var links : [ SpanLink ] {
71
- _links. withValue ( \ . self )
71
+ _links. withValue { $0 }
72
72
}
73
73
74
74
public func addLink( _ link: SpanLink ) {
@@ -77,7 +77,7 @@ public struct TestSpan: Span {
77
77
}
78
78
79
79
public var errors : [ RecordedError ] {
80
- _errors. withValue ( \ . self )
80
+ _errors. withValue { $0 }
81
81
}
82
82
83
83
public func recordError(
@@ -92,7 +92,7 @@ public struct TestSpan: Span {
92
92
}
93
93
94
94
public var status : SpanStatus ? {
95
- _status. withValue ( \ . self )
95
+ _status. withValue { $0 }
96
96
}
97
97
98
98
public func setStatus( _ status: SpanStatus ) {
@@ -138,7 +138,7 @@ public struct TestSpan: Span {
138
138
line: UInt = #line
139
139
) {
140
140
assert (
141
- _isRecording. withValue ( \ . self ) == true ,
141
+ _isRecording. withValue { $0 } == true ,
142
142
" Attempted to mutate already ended span. " ,
143
143
file: file,
144
144
line: line
0 commit comments