Skip to content

Commit ea6d6cb

Browse files
mikolalysenkoclaude
andcommitted
Fix unused-variable clippy error in pdm_dir_candidates on macOS
unix_default is only read on Linux, so clippy -D warnings failed the core lib on macOS. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent cc12cab commit ea6d6cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎crates/socket-patch-core/src/crawlers/python_crawler.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,8 @@ fn uv_dir_candidates(home_dir: &Path, override_var: &str, bucket: &str) -> Vec<P
27972797
/// macOS), `~/<unix_default>/pdm` on Linux,
27982798
/// `~/Library/Application Support/pdm` on macOS, and
27992799
/// `%LOCALAPPDATA%\pdm\pdm` on Windows.
2800-
#[cfg_attr(windows, allow(unused_variables))]
2800+
// `unix_default` is Linux-only, `var` / `xdg_var` unused on Windows.
2801+
#[cfg_attr(any(windows, target_os = "macos"), allow(unused_variables))]
28012802
fn pdm_dir_candidates(
28022803
home_dir: Option<&Path>,
28032804
var: &impl Fn(&str) -> Option<String>,

0 commit comments

Comments
 (0)