aboutsummaryrefslogtreecommitdiff
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
parentc38d117b5803c65ad57a4c4704ee0d897d9fb3cb (diff)
fix dead lockHEADmaster
-rw-r--r--Cargo.lock4
-rw-r--r--derive/Cargo.toml2
-rw-r--r--derive/src/lib.rs2
-rw-r--r--test/Cargo.toml2
4 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 3141dd1..70fc43f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -73,7 +73,7 @@ dependencies = [
[[package]]
name = "static-l10n"
-version = "0.0.1"
+version = "0.0.2"
dependencies = [
"proc-macro2",
"quote",
@@ -83,7 +83,7 @@ dependencies = [
[[package]]
name = "static-l10n-test"
-version = "0.0.1"
+version = "0.0.2"
dependencies = [
"static-l10n",
]
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),
}
diff --git a/test/Cargo.toml b/test/Cargo.toml
index 0735f93..ccfa7f2 100644
--- a/test/Cargo.toml
+++ b/test/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "static-l10n-test"
-version = "0.0.1"
+version = "0.0.2"
edition = "2024"
publish = false