fix: build warning in windows_reserved_names_are_allowed

This commit is contained in:
Arlo Siemsen 2025-02-19 10:48:36 -06:00
parent 684bca2012
commit 44de80f89c
3 changed files with 2 additions and 4 deletions

2
Cargo.lock generated
View File

@ -457,7 +457,7 @@ version = "0.4.1"
[[package]]
name = "cargo-test-support"
version = "0.7.1"
version = "0.7.2"
dependencies = [
"anstream",
"anstyle",

View File

@ -1,6 +1,6 @@
[package]
name = "cargo-test-support"
version = "0.7.1"
version = "0.7.2"
edition.workspace = true
rust-version = "1.84" # MSRV:1
license.workspace = true

View File

@ -371,8 +371,6 @@ pub fn sysroot() -> String {
/// determines whether we are running in a mode that allows Windows reserved names.
#[cfg(windows)]
pub fn windows_reserved_names_are_allowed() -> bool {
use cargo_util::is_ci;
use std::ffi::OsStr;
use std::os::windows::ffi::OsStrExt;
use std::ptr;