Skip to content

Commit 5644b17

Browse files
committed
test: gate the user_config import to unix
Every caller is a symlink test, which is already cfg(unix); the import was not, so the Windows deny-warnings check failed on an unused import that the unix build could never surface.
1 parent 693757f commit 5644b17

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

crates/aft/tests/integration/safety_test.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
//! Tests exercise the full round-trip through the binary's JSON protocol:
44
//! snapshot → checkpoint → modify → restore → verify file contents.
55
6-
use super::helpers::{user_config, AftProcess};
6+
use super::helpers::AftProcess;
7+
// Only the unix-gated symlink tests below take this route; on Windows every
8+
// caller is compiled out, so an unconditional import trips deny-warnings.
9+
#[cfg(unix)]
10+
use super::helpers::user_config;
711
#[cfg(unix)]
812
use aft::commands::checkpoint::handle_checkpoint;
913
#[cfg(unix)]

0 commit comments

Comments
 (0)