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

Iri<T> and IriRef<T> should implement Debug regardless of T #170

Closed
pchampin opened this issue Jun 9, 2024 · 0 comments
Closed

Iri<T> and IriRef<T> should implement Debug regardless of T #170

pchampin opened this issue Jun 9, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@pchampin
Copy link
Owner

pchampin commented Jun 9, 2024

Currently Iri<T> and IriRef<T> derive Debug, meaning that they only implement it if T implements it.

If would make more sense for Iri and IriRef to provide their own implementation of Debug, regarless of T (after all, T implements Borrow<str> so it is trivially "displayable").

This would also avoid the frustration of Iri<T> or IriRef<T> not implementing Term when T is too generic (see #169).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant