lesspass.rs icon indicating copy to clipboard operation
lesspass.rs copied to clipboard

All public functions could take `impl AsRef<[u8]>` instead of `&str`

Open ccptr opened this issue 1 year ago • 0 comments

I'm using this crate as a library for a personal tool, and came across this issue when trying to use environment variables as input without validating them to be UTF-8. Now that I'm thinking about it I could just error out if they're not valid UTF-8, but I would still like to be able to do these kinds of things and it is a needless restriction of the API. I'm curious to know your thoughts and/or reasoning behind it.

ccptr avatar Feb 06 '24 07:02 ccptr