Timer.record(_ duration:) review feedback cleanup

This commit is contained in:
Natik Gadzhi 2023-06-28 13:52:09 -07:00
parent f8316f296e
commit 9b835a7f6d
No known key found for this signature in database
GPG Key ID: E6387D41B53DEE06
2 changed files with 1 additions and 6 deletions

View File

@ -76,11 +76,6 @@ extension Timer {
} }
#if swift(>=5.7) #if swift(>=5.7)
public enum TimerError: Error {
case durationToIntOverflow
}
extension Timer { extension Timer {
/// Convenience for recording a duration based on ``Duration``. /// Convenience for recording a duration based on ``Duration``.
/// ///

View File

@ -101,7 +101,7 @@ class MetricsExtensionsTests: XCTestCase {
// tests on Linux in MetricsTests+XCTest don't complain that the func does not exist. // tests on Linux in MetricsTests+XCTest don't complain that the func does not exist.
#if swift(>=5.7) #if swift(>=5.7)
guard #available(iOS 16, macOS 13, tvOS 15, watchOS 8, *) else { guard #available(iOS 16, macOS 13, tvOS 15, watchOS 8, *) else {
return throw XCTSkip("Timer.record(_ duration: Duration) is available on Swift 5.7+")
} }
let metrics = TestMetrics() let metrics = TestMetrics()