pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
228 stars 24 forks source link

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

Closed pchampin closed 3 months ago

pchampin commented 3 months ago

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).