diff options
| author | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-01-17 11:22:22 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-01-17 12:24:45 +0100 |
| commit | 88d6bf80f5cdbbb90ead197bd41a67eb8c44e50e (patch) | |
| tree | 401549b24fe8a747ef6739389b1b38f33ef016bb /src/i18n.rs | |
| parent | 17898fbabde35ab346c133114e78614e707c0eca (diff) | |
Make clippy stricter and fix
Diffstat (limited to 'src/i18n.rs')
| -rw-r--r-- | src/i18n.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i18n.rs b/src/i18n.rs index 1c574e0..35955a1 100644 --- a/src/i18n.rs +++ b/src/i18n.rs @@ -16,7 +16,7 @@ //! Internationalization support using gettext. -use gettextrs::{bindtextdomain, setlocale, textdomain, LocaleCategory}; +use gettextrs::{LocaleCategory, bindtextdomain, setlocale, textdomain}; /// The gettext domain for the application. pub const GETTEXT_DOMAIN: &str = "systems.tranquil.Map"; @@ -43,7 +43,7 @@ pub fn init() { } } - textdomain(GETTEXT_DOMAIN).expect("Failed to set gettext domain"); + textdomain(GETTEXT_DOMAIN).ok(); } /// Macro for translating strings at runtime. |