diff options
Diffstat (limited to 'tvix/eval/src/main.rs')
-rw-r--r-- | tvix/eval/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs index 3d0c29688e6d..55cc643dcedb 100644 --- a/tvix/eval/src/main.rs +++ b/tvix/eval/src/main.rs @@ -32,7 +32,9 @@ fn run_file(file: &str) { fn state_dir() -> Option<PathBuf> { let mut path = dirs::data_dir(); - path.as_mut().map(|p| p.push("tvix")); + if let Some(p) = path.as_mut() { + p.push("tvix") + } path } |