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
* Specific lifetime on initialiser
When not explicitly defined, Rust will assign the same lifetime to all
input parameters and return values.
The FluentBundle::new constructor does not define an explicit lifetime
for the 'locale' input parameter, so it is assigned the same lifetime as
the bundle itself. This causes the borrow checker to reject code that
initialises bundles populated from dynamically loaded resources and
stored in separate containers.
This adds an explicit lifetime to the locales parameter to decouple it
from the return value and a test case that fails to compile without the
change.
* Remove disabled code
0 commit comments