Skip to content

Commit a44cc38

Browse files
committed
fix: remove macro_vis
1 parent 3579a1e commit a44cc38

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ i18n-embed = { version = "0.16.0", features = [
7474
] }
7575
i18n-embed-fl = "0.10.0"
7676
rust-embed = "8.9.0"
77-
macro-vis = "0.1.1"
7877
clap-i18n-richformatter = { git = "https://github.com/Sk7Str1p3/clap-i18n-richformatter-0.1.4" }
7978

8079
[dev-dependencies]

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::i18n::tr;
1+
use crate::tr;
22
use crate::info::langs::language::{Language, LanguageType};
33
use crate::info::utils::info_field::InfoType;
44
use crate::ui::printer::SerializationFormat;

src/i18n.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ pub fn init() -> anyhow::Result<()> {
3232
Ok(())
3333
}
3434

35-
// TODO: suppress warning "`macro` is experimental"
36-
#[macro_vis::macro_vis(pub)]
35+
#[macro_export]
3736
macro_rules! tr {
3837
($id:literal) => {{
3938
i18n_embed_fl::fl!($crate::i18n::LOADER, $id)

0 commit comments

Comments
 (0)