Skip to content

Do I need to clone the i18n context provided by use_i18n()? #180

Answered by Baptistemontan
SergeFan asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply, I did'nt get any notification, I don't know why.

use_i18n() will return a I18nContext<L> struct that implement Copy if L impl Locale, which it does by definition of the use_i18n function, so no need for clones, it is a RustRover problem. I never used it, so I don't know any way to fix it or suppress those errors.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SergeFan
Comment options

Answer selected by SergeFan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants