Do I need to clone the i18n context provided by use_i18n()
?
#180
-
If I use the i18n context provided by My code:
So this is actually okay to use i18n this way and no need to clone? It's just RustRover code inspect problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry for the late reply, I did'nt get any notification, I don't know why.
|
Beta Was this translation helpful? Give feedback.
Sorry for the late reply, I did'nt get any notification, I don't know why.
use_i18n()
will return aI18nContext<L>
struct that implementCopy
ifL impl Locale
, which it does by definition of theuse_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.