Skip to content
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

Implement Display for OneOrMany #11

Closed
wants to merge 1 commit into from

Conversation

bittrance
Copy link
Contributor

In order to log invalid audiences, it helps to have Display implemented for OneOrMany.

@blckngm
Copy link
Owner

blckngm commented May 30, 2024

I don't think we should implement Display for OneOrMany, which is a generic container type to help serialization. Display isn't implemented for Vec either.

How about using itertools join or format?

@bittrance
Copy link
Contributor Author

Display isn't implemented for Vec either.

Fair enough. You are right that the better way to present it is probably to serialize it into the log message.

@bittrance bittrance closed this May 30, 2024
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