File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
FirebaseSessions/Sources/Development Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,10 @@ extension firebase_appquality_sessions_LogEnvironment: CustomStringConvertible {
103
103
}
104
104
}
105
105
106
- extension UnsafeMutablePointer < pb_bytes_array_t > : CustomStringConvertible {
106
+ // This is written like this for Swift backwards-compatibility.
107
+ // Once we upgrade to Xcode 14, this can be written as
108
+ // UnsafeMutablePointer<pb_bytes_array_t>
109
+ extension UnsafeMutablePointer : CustomStringConvertible where Pointee == pb_bytes_array_t {
107
110
public var description : String {
108
111
let decoded = FIRSESDecodeString ( self )
109
112
if decoded. count == 0 {
@@ -114,7 +117,11 @@ extension UnsafeMutablePointer<pb_bytes_array_t>: CustomStringConvertible {
114
117
}
115
118
116
119
// For an optional field
117
- extension UnsafeMutablePointer < pb_bytes_array_t > ? : CustomStringConvertible {
120
+ // This is written like this for Swift backwards-compatibility.
121
+ // Once we upgrade to Xcode 14, this can be written as
122
+ // UnsafeMutablePointer<pb_bytes_array_t>?
123
+ extension Optional : CustomStringConvertible
124
+ where Wrapped == UnsafeMutablePointer < pb_bytes_array_t > {
118
125
public var description : String {
119
126
guard let this = self else {
120
127
return " <NULL> "
You can’t perform that action at this time.
0 commit comments