restson-rust
restson-rust copied to clipboard
All functions/methods taking `&str` would probably benefit from being generic over `AsRef<str>`
Being AsRef<str>
allows passing many different kind of types, not just &str
.
PR pending...
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.