projectfluent / fluent-rs

Rust implementation of Project Fluent
https://projectfluent.org
Apache License 2.0
1.04k stars 95 forks source link

Implement From<&String> for FluentValue #251

Closed LegionMammal978 closed 2 years ago

LegionMammal978 commented 2 years ago

This is useful for macros such as i18-embed-fl's fl! to accept String values by reference without requiring as_str or slice syntax. It directly corresponds to impl<'a> From<&'a String> for Cow<'a, str>.

zbraniecki commented 2 years ago

thank you! That looks good!