Skip to content

Commit

Permalink
fix: Make arguments of SpanBase's '==' of type Self (open-telemetry#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
clackary authored Oct 18, 2024
1 parent 099dfa4 commit a3b541b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OpenTelemetryApi/Trace/Span.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public extension SpanBase {
hasher.combine(context.spanId)
}

static func == (lhs: SpanBase, rhs: SpanBase) -> Bool {
static func == (lhs: Self, rhs: Self) -> Bool {
return lhs.context.spanId == rhs.context.spanId
}
}
Expand Down

0 comments on commit a3b541b

Please sign in to comment.