Change FluentArgs
key type to String
.
#179
Labels
crate:fluent-bundle
Issues related to fluent-bundle crate
design-decision
Issues pending design decision, usually Rust specific
enhancement
help wanted
We need help making decisions or writing PRs for this.
question
Milestone
Currently
FluentArgs
is aHashMap<&str, FluentValue>
, which is okay when you're using str literals as keys, however when you're constructing your map dynamically you don't have aHashMap<&str, V>
only aString
. Currently you have to construct a new HashMap that takes the key by reference and clones theFluentValue
. It would easier for users and more appropriate if it wasHashMap<String, FluentValue>
.The text was updated successfully, but these errors were encountered: