From 23ea95a155e6eabbc0e01e636e18e2cce99b05c4 Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Fri, 23 Jan 2026 11:55:03 -0800 Subject: [PATCH] fix: add cfg(feature = "remote") to ENV_VARS_TO_STORAGE_OPTS constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The constant was only used in remote feature code but defined unconditionally, causing dead_code warnings when building without the remote feature. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- rust/lancedb/src/connection.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/lancedb/src/connection.rs b/rust/lancedb/src/connection.rs index 9078f3873..cd2c02394 100644 --- a/rust/lancedb/src/connection.rs +++ b/rust/lancedb/src/connection.rs @@ -892,6 +892,7 @@ pub struct ConnectBuilder { embedding_registry: Option>, } +#[cfg(feature = "remote")] const ENV_VARS_TO_STORAGE_OPTS: [(&str, &str); 1] = [("AZURE_STORAGE_ACCOUNT_NAME", "azure_storage_account_name")];