-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dump format for Duration #92
Conversation
extension Character: CustomDumpRepresentable { | ||
public var customDumpValue: Any { | ||
String(self) | ||
} | ||
} | ||
|
||
#if (swift(>=5.7) && (os(iOS) || os(tvOS) || os(watchOS))) || (os(macOS) && swift(>=5.7.1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting with an easy conformance for Apple platforms. Could take a custom conformance for Linux/Wasm/Windows or wait for the new open source Foundation to close the gap.
func customDumpHelp<T, TargetStream>( | ||
_ value: T, | ||
to target: inout TargetStream, | ||
func customDumpHelp<InnerT, InnerTargetStream>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated Swift 6 error fix.
Could tweak it a bit, but better than the default.