From 7244349e9756df26cb0157bade6d399ea02ad47c Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 16 Mar 2026 04:41:08 +0100 Subject: [PATCH] refactor: allow unused variable warning for db_pool in build_provider_registry --- k-tv-backend/api/src/provider_registry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/k-tv-backend/api/src/provider_registry.rs b/k-tv-backend/api/src/provider_registry.rs index df9dd6f..89b96fa 100644 --- a/k-tv-backend/api/src/provider_registry.rs +++ b/k-tv-backend/api/src/provider_registry.rs @@ -21,6 +21,7 @@ pub struct ProviderBundle { pub async fn build_provider_registry( config: &Config, + #[cfg_attr(not(feature = "local-files"), allow(unused_variables))] db_pool: &Arc, provider_config_repo: &Arc, ) -> anyhow::Result {