Skip to content

Commit

Permalink
fix macro
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Dec 10, 2023
1 parent 2eaa3e2 commit 15002e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "json-gettext"
version = "4.0.9"
version = "4.0.10"
authors = ["Magic Len <[email protected]>"]
edition = "2021"
rust-version = "1.69"
Expand All @@ -17,15 +17,14 @@ serde = "1"
serde_json = "1"
regex = "1"
unic-langid = { version = "0.9", features = ["macros"], optional = true }
unic-langid-macros = { version = "0.9", optional = true }
manifest-dir-macros = { version = "0.1.6", features = ["tuple"] }

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

[features]
rocketly = ["rocket"]
langid = ["unic-langid", "unic-langid-macros"]
langid = ["unic-langid"]
language_region_pair = ["langid"]
language = ["langid"]
region = ["langid"]
Expand Down
2 changes: 1 addition & 1 deletion src/key_copy/keys/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ assert_eq!(Key(Language::from_str("us").unwrap()), key);
#[macro_export]
macro_rules! key {
($key:expr) => {{
$crate::Key($crate::unic_langid_macros::lang!($key))
$crate::Key($crate::unic_langid::lang!($key))
}};
}
2 changes: 1 addition & 1 deletion src/key_copy/keys/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ assert_eq!(Key(Region::from_str("us").unwrap()), key);
#[macro_export]
macro_rules! key {
($key:expr) => {{
$crate::Key($crate::unic_langid_macros::region!($key))
$crate::Key($crate::unic_langid::region!($key))
}};
}
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ pub extern crate serde_json;
#[cfg(feature = "langid")]
pub extern crate unic_langid;

#[cfg(feature = "langid")]
pub extern crate unic_langid_macros;

#[doc(hidden)]
pub extern crate manifest_dir_macros;

Expand Down

0 comments on commit 15002e7

Please sign in to comment.