restson-rust icon indicating copy to clipboard operation
restson-rust copied to clipboard

All functions/methods taking `&str` would probably benefit from being generic over `AsRef<str>`

Open nbigaouette-eai opened this issue 5 years ago • 1 comments

Being AsRef<str> allows passing many different kind of types, not just &str.

PR pending...

nbigaouette-eai avatar Mar 19 '19 19:03 nbigaouette-eai

This is something I don't have a very strong opinion about. I've seen both used, and I don't think it is obvious which one is idiomatic. Though, if you have this implemented, I would be happy to receive a PR.

spietika avatar Mar 24 '19 12:03 spietika