From 6d49fdb70e1be87b9c1fd4aa078c4e3421f3a46d Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Mon, 4 Aug 2025 14:39:12 +0200 Subject: fix: clippy issues on Windows (#2856) --- crates/atuin-common/src/utils.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/atuin-common/src') diff --git a/crates/atuin-common/src/utils.rs b/crates/atuin-common/src/utils.rs index 9a84c31b..f4756263 100644 --- a/crates/atuin-common/src/utils.rs +++ b/crates/atuin-common/src/utils.rs @@ -200,7 +200,6 @@ mod tests { use pretty_assertions::assert_ne; use super::*; - use std::env; use std::collections::HashSet; @@ -214,6 +213,7 @@ mod tests { test_data_dir(); } + #[cfg(not(windows))] fn test_config_dir_xdg() { // TODO: Audit that the environment access only happens in single-threaded code. unsafe { env::remove_var("HOME") }; @@ -227,6 +227,7 @@ mod tests { unsafe { env::remove_var("XDG_CONFIG_HOME") }; } + #[cfg(not(windows))] fn test_config_dir() { // TODO: Audit that the environment access only happens in single-threaded code. unsafe { env::set_var("HOME", "/home/user") }; @@ -239,6 +240,7 @@ mod tests { unsafe { env::remove_var("HOME") }; } + #[cfg(not(windows))] fn test_data_dir_xdg() { // TODO: Audit that the environment access only happens in single-threaded code. unsafe { env::remove_var("HOME") }; @@ -249,6 +251,7 @@ mod tests { unsafe { env::remove_var("XDG_DATA_HOME") }; } + #[cfg(not(windows))] fn test_data_dir() { // TODO: Audit that the environment access only happens in single-threaded code. unsafe { env::set_var("HOME", "/home/user") }; -- cgit v1.3.1