lol-html icon indicating copy to clipboard operation
lol-html copied to clipboard

Return &str from `get_attribute`

Open jyn514 opened this issue 3 years ago • 0 comments

Most of the time I'm looking at an attribute, I don't actually need to copy it. But get_attribute() makes a copy anyway. It would be nice to return a borrow instead.

This would also require changing Bytes::as_string() to return a borrow.

jyn514 avatar Oct 30 '20 20:10 jyn514