From f7e5e587c06ece6da34c310fc4c42aecbf276d1c Mon Sep 17 00:00:00 2001 From: Salim B Date: Sun, 13 Sep 2026 02:53:58 +0200 Subject: [PATCH] refactor: drop redundant condition `#[cfg(feature = "fluent")]` already excludes the whole `if` block from compilation entirely when the `fluent` feature is off, so the block that remains after conditional compilation can only exist when `fluent` is enabled. In that case `cfg!(feature = "fluent")` inside it will always evaluate to `true`, making the `if cfg!(feature = "fluent")` check redundant: it can never be `false` at the point it's evaluated. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3181ac6..38d1b74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,7 @@ fn main() -> Result<()> { }; #[cfg(feature = "fluent")] - if cfg!(feature = "fluent") { + { let builder = ArcLoader::builder(&locales_path, locale.clone()).customize(|bundle| bundle.set_use_isolating(false)); if let Ok(locale_loader) = builder.build() {