We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ProfileEnvGuard
cfg(not(windows))
1 parent 0c21137 commit 80123f4Copy full SHA for 80123f4
1 file changed
crates/vite_global_cli/src/commands/env/doctor.rs
@@ -795,12 +795,14 @@ mod tests {
795
}
796
797
/// Guard for env vars used by profile file tests.
798
+ #[cfg(not(windows))]
799
struct ProfileEnvGuard {
800
original_home: Option<std::ffi::OsString>,
801
original_zdotdir: Option<std::ffi::OsString>,
802
original_xdg_config: Option<std::ffi::OsString>,
803
804
805
806
impl ProfileEnvGuard {
807
fn new(
808
home: &std::path::Path,
@@ -827,6 +829,7 @@ mod tests {
827
829
828
830
831
832
833
impl Drop for ProfileEnvGuard {
834
fn drop(&mut self) {
835
unsafe {
0 commit comments