diff options
Diffstat (limited to 'tests/ui/src/imag.rs')
-rw-r--r-- | tests/ui/src/imag.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/src/imag.rs b/tests/ui/src/imag.rs index 5b64b6ba..8c239e71 100644 --- a/tests/ui/src/imag.rs +++ b/tests/ui/src/imag.rs @@ -25,7 +25,9 @@ use assert_cmd::prelude::*; use assert_cmd::assert::Assert; pub fn make_temphome() -> TempDir { - TempDir::new().unwrap().persist_if(std::env::var("IMAG_UI_TEST_PERSIST").is_ok()) + TempDir::new() + .unwrap() + .into_persistent_if(std::env::var("IMAG_UI_TEST_PERSIST").is_ok()) } pub fn binary(tempdir: &TempDir, binary_name: &str) -> Command { |