diff options
| author | copi143 <copi143@outlook.com> | 2026-01-17 05:09:03 +0800 |
|---|---|---|
| committer | copi143 <copi143@outlook.com> | 2026-01-17 05:09:03 +0800 |
| commit | d177aa61ea6aca339af8cd70c5fd35b62f821c2e (patch) | |
| tree | 6aa307d686533355b6220559d6c47515a14d9532 /derive/src/lib.rs | |
| parent | c38d117b5803c65ad57a4c4704ee0d897d9fb3cb (diff) | |
Diffstat (limited to 'derive/src/lib.rs')
| -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), } |
