You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this crate is a relatively high-perf setting where doing a clone of a string to pass it around it kind of unwanted. It would be great if the crate would allow to just use static references for things that allow it.
For instance: country.un_locale() could easily return &'static str instead of &str.
The text was updated successfully, but these errors were encountered:
MOZGIII
changed the title
Expose &strs with &'static lifetime where possible
Expose &str with 'static lifetime where possible
Jan 30, 2024
MOZGIII
changed the title
Expose &str with 'static lifetime where possible
Expose &str with 'static lifetimes where possible
Jan 30, 2024
I use only a small part of the API surface - so I don't really know where to look for all the instances where this would be relevant. So, I'd avoid taking this task.
Using this crate is a relatively high-perf setting where doing a clone of a string to pass it around it kind of unwanted. It would be great if the crate would allow to just use static references for things that allow it.
For instance:
country.un_locale()
could easily return&'static str
instead of&str
.The text was updated successfully, but these errors were encountered: