diff options
Diffstat (limited to 'derive/src')
| -rw-r--r-- | derive/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/derive/src/lib.rs b/derive/src/lib.rs index 35c98ee..51ee528 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -904,7 +904,7 @@ fn expand_match_expr( translations: Vec<proc_macro2::TokenStream>, ) -> proc_macro2::TokenStream { quote_spanned! {span=> - match crate::__STATIC_L10N_LANG__.lock().unwrap().as_ref() { + match { crate::__STATIC_L10N_LANG__.lock().unwrap().clone() } { #(#translations,)* other => panic!("Unsupported language: {}", other), } |
