Skip to content

Commit 15002e7

Browse files
committed
fix macro
1 parent 2eaa3e2 commit 15002e7

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "json-gettext"
3-
version = "4.0.9"
3+
version = "4.0.10"
44
authors = ["Magic Len <len@magiclen.org>"]
55
edition = "2021"
66
rust-version = "1.69"
@@ -17,15 +17,14 @@ serde = "1"
1717
serde_json = "1"
1818
regex = "1"
1919
unic-langid = { version = "0.9", features = ["macros"], optional = true }
20-
unic-langid-macros = { version = "0.9", optional = true }
2120
manifest-dir-macros = { version = "0.1.6", features = ["tuple"] }
2221

2322
rocket = { version = "0.5", optional = true }
2423
rocket-accept-language = { version = "0.8", optional = true }
2524

2625
[features]
2726
rocketly = ["rocket"]
28-
langid = ["unic-langid", "unic-langid-macros"]
27+
langid = ["unic-langid"]
2928
language_region_pair = ["langid"]
3029
language = ["langid"]
3130
region = ["langid"]

src/key_copy/keys/language.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ assert_eq!(Key(Language::from_str("us").unwrap()), key);
7474
#[macro_export]
7575
macro_rules! key {
7676
($key:expr) => {{
77-
$crate::Key($crate::unic_langid_macros::lang!($key))
77+
$crate::Key($crate::unic_langid::lang!($key))
7878
}};
7979
}

src/key_copy/keys/region.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ assert_eq!(Key(Region::from_str("us").unwrap()), key);
7474
#[macro_export]
7575
macro_rules! key {
7676
($key:expr) => {{
77-
$crate::Key($crate::unic_langid_macros::region!($key))
77+
$crate::Key($crate::unic_langid::region!($key))
7878
}};
7979
}

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ pub extern crate serde_json;
122122
#[cfg(feature = "langid")]
123123
pub extern crate unic_langid;
124124

125-
#[cfg(feature = "langid")]
126-
pub extern crate unic_langid_macros;
127-
128125
#[doc(hidden)]
129126
pub extern crate manifest_dir_macros;
130127

0 commit comments

Comments
 (0)