aboutsummaryrefslogtreecommitdiff
path: root/derive
diff options
context:
space:
mode:
Diffstat (limited to 'derive')
-rw-r--r--derive/Cargo.toml2
-rw-r--r--derive/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/derive/Cargo.toml b/derive/Cargo.toml
index 3e30184..2b95956 100644
--- a/derive/Cargo.toml
+++ b/derive/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "static-l10n"
-version = "0.0.1"
+version = "0.0.2"
edition = "2024"
authors = ["copi143 <copi143@outlook.com>"]
license = "CC0-1.0"
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),
}