1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Specify a default tempdir for Windows

This commit is contained in:
electricboogie 2021-04-25 22:39:17 -05:00
parent e5c19734c8
commit 6654519c7d

View file

@ -92,7 +92,17 @@ static THOUSANDS_SEP: char = ',';
static NEGATIVE: char = '-';
static POSITIVE: char = '+';
#[cfg(any(
target_os = "windows",
))]
static DEFAULT_TMPDIR: &str = r"%USERPROFILE%\AppData\Local\Temp";
#[cfg(not(any(
target_os = "windows",
)))]
static DEFAULT_TMPDIR: &str = r"/tmp";
static DEFAULT_BUF_SIZE: usize = usize::MAX;
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Copy)]