From d177aa61ea6aca339af8cd70c5fd35b62f821c2e Mon Sep 17 00:00:00 2001 From: copi143 Date: Sat, 17 Jan 2026 05:09:03 +0800 Subject: fix dead lock --- derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'derive/src') 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 { 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), } -- cgit