From 49c25912951daa69ed08dc8e1c05b07a691fd7bf Mon Sep 17 00:00:00 2001 From: Matt Cleinman <9295855+mcleinman@users.noreply.github.com> Date: Fri, 14 Jul 2023 11:59:36 -0700 Subject: [PATCH] suppress swift warnings --- glean-core/ios/Glean/Glean.swift | 2 +- glean-core/ios/Glean/Metrics/UuidMetric.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glean-core/ios/Glean/Glean.swift b/glean-core/ios/Glean/Glean.swift index 499fcb02f7..516694c2ca 100644 --- a/glean-core/ios/Glean/Glean.swift +++ b/glean-core/ios/Glean/Glean.swift @@ -329,7 +329,7 @@ public class Glean { /// /// - parameters: /// * value: The value of the tag, which must be a valid HTTP header value. - public func setDebugViewTag(_ tag: String) -> Bool { + @discardableResult public func setDebugViewTag(_ tag: String) -> Bool { return gleanSetDebugViewTag(tag) } diff --git a/glean-core/ios/Glean/Metrics/UuidMetric.swift b/glean-core/ios/Glean/Metrics/UuidMetric.swift index 5de5bda17f..585a47d9a7 100644 --- a/glean-core/ios/Glean/Metrics/UuidMetric.swift +++ b/glean-core/ios/Glean/Metrics/UuidMetric.swift @@ -22,7 +22,7 @@ public class UuidMetricType { /// Generate a new UUID and set it in the metric store. /// /// - returns: The `UUID` that was generated or `nil` if disabled. - public func generateAndSet() -> UUID { + @discardableResult public func generateAndSet() -> UUID { let uuid = inner.generateAndSet() return UUID(uuidString: uuid)! }