LukasKalbertodt / litrs

Parsing and inspecting Rust literals (particularly useful for proc macros)

Home Page:https://docs.rs/litrs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return `String` from `StringLit<String>::into_value`

LukasKalbertodt opened this issue · comments

Currently Cow<'static, str> is returned, but it's always Cow::Owned. I wonder whether its more useful to have a simpler type (String instead of Cow<'static, str>) in the common case or whether always getting a Cow back is more useful. The same goes for ByteStringLit::into_value.