aboutsummaryrefslogtreecommitdiff
path: root/derive/src/lib.rs
diff options
context:
space:
mode:
authorcopi143 <copi143@outlook.com>2026-01-17 05:09:03 +0800
committercopi143 <copi143@outlook.com>2026-01-17 05:09:03 +0800
commitd177aa61ea6aca339af8cd70c5fd35b62f821c2e (patch)
tree6aa307d686533355b6220559d6c47515a14d9532 /derive/src/lib.rs
parentc38d117b5803c65ad57a4c4704ee0d897d9fb3cb (diff)
fix dead lockHEADmaster
Diffstat (limited to 'derive/src/lib.rs')
-rw-r--r--derive/src/lib.rs2
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),
}