From ba07967bb775ed8aa73c46ab731c85b9fb613305 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 1 Jun 2023 15:11:09 +0200 Subject: [PATCH] Rename do not switch case (#129) --- Sources/Tracing/SpanProtocol.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Tracing/SpanProtocol.swift b/Sources/Tracing/SpanProtocol.swift index 8ec4408..1c0c27a 100644 --- a/Sources/Tracing/SpanProtocol.swift +++ b/Sources/Tracing/SpanProtocol.swift @@ -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]) @@ -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") } }