diff --git a/Cargo.toml b/Cargo.toml index a5e63e804..e028e5a74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -155,6 +155,7 @@ pep508_rs = { path = "crates/pep508-rs" } [workspace.lints.rust] unsafe_code = "warn" unreachable_pub = "warn" +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(codspeed)'] } [workspace.lints.clippy] pedantic = { level = "warn", priority = -2 } diff --git a/crates/uv-extract/src/tar.rs b/crates/uv-extract/src/tar.rs index a89caf99b..4791a7547 100644 --- a/crates/uv-extract/src/tar.rs +++ b/crates/uv-extract/src/tar.rs @@ -3,7 +3,7 @@ use std::path::{Component, Path, PathBuf}; /// Determine the path at which the given tar entry will be unpacked, when unpacking into `dst`. /// /// See: -#[cfg_attr(not(target_os = "unix"), allow(dead_code))] +#[cfg_attr(not(unix), allow(dead_code))] pub(crate) fn unpacked_at(dst: &Path, entry: &Path) -> Option { let mut file_dst = dst.to_path_buf(); {