about summary refs log tree commit diff
path: root/tvix/eval/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-13T23·51+0300
committertazjin <tazjin@tvl.su>2022-08-30T16·53+0000
commitab9407bded75d184ed694afe3564230fd09578ed (patch)
tree0492d451f8c8a78fb4c3dbf3f59ed2f6e763a57e /tvix/eval/src/main.rs
parentc4f73eecdca23ea3adaed5584224046ffdd99b4c (diff)
fix(tvix/eval): address various clippy lints r/4537
Change-Id: I3ea0f51475e80948adfeb5d1620c1f2665cc39bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6201
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/main.rs')
-rw-r--r--tvix/eval/src/main.rs4
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
 }