Skip to content

Commit

Permalink
Rename do not switch case (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfett authored Jun 1, 2023
1 parent f4adcda commit ba07967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tracing/SpanProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public enum SpanAttribute: Equatable {
case string(String)
case stringArray([String])

case __DO_NOT_SWITCH_EXHAUSTIVELY_OVER_THIS_ENUM
case __DO_NOT_SWITCH_EXHAUSTIVELY_OVER_THIS_ENUM_USE_DEFAULT_INSTEAD

case stringConvertible(CustomStringConvertible & Sendable)
case stringConvertibleArray([CustomStringConvertible & Sendable])
Expand Down Expand Up @@ -367,7 +367,7 @@ public enum SpanAttribute: Equatable {
return value
case .stringConvertibleArray(let value):
return value
case .__DO_NOT_SWITCH_EXHAUSTIVELY_OVER_THIS_ENUM:
case .__DO_NOT_SWITCH_EXHAUSTIVELY_OVER_THIS_ENUM_USE_DEFAULT_INSTEAD:
fatalError("Cannot have values of __DO_NOT_SWITCH_EXHAUSTIVELY_OVER_THIS_ENUM")
}
}
Expand Down

0 comments on commit ba07967

Please sign in to comment.