Skip to content

Conversation

@Bellaposa
Copy link
Contributor

@Bellaposa Bellaposa commented Aug 28, 2021

I extended some CoreImage conformance

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to PR! Some of the conformances should be good to go, but I'm bit quite sure I understand all of them...

Comment on lines 45 to 98
extension CIContextOption: CustomDumpStringConvertible {
public var customDumpDescription: String {
switch self {
default:
return "CIContextOption.(default, rawValue: \(self.rawValue))"
}
}
}

extension CIImageRepresentationOption: CustomDumpStringConvertible {
public var customDumpDescription: String {
switch self {
default:
return "CIImageRepresentationOption.(default, rawValue: \(self.rawValue))"
}
}
}

extension CIFormat: CustomDumpStringConvertible {
public var customDumpDescription: String {
switch self {
default:
return "CIFormat.(default, rawValue: \(self.rawValue))"
}
}
}

extension CIImageOption: CustomDumpStringConvertible {
public var customDumpDescription: String {
switch self {
default:
return "CIImageOption.(default, rawValue: \(self.rawValue))"
}
}
}

extension CIImageAutoAdjustmentOption: CustomDumpStringConvertible {
public var customDumpDescription: String {
switch self {
default:
return "CIImageAutoAdjustmentOption.(default, rawValue: \(self.rawValue))"
}
}
}

extension CIKernel: CustomDumpStringConvertible {
public var customDumpDescription: String {
switch self {
default:
return "CIKernel.(default, rawValue: \(self))"
}
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should any of these conformances be necessary? None are switching on enum-like values, so I think the default rendering should be ok, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree!

Bellaposa and others added 2 commits August 29, 2021 12:23
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
@Bellaposa
Copy link
Contributor Author

I updated by removing the unnecessary conformance.

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stephencelis stephencelis merged commit 825ea07 into pointfreeco:main Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants