about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/chunk.rs12
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-path-exists-child-of-file.nix2
2 files changed, 6 insertions, 8 deletions
diff --git a/tvix/eval/src/chunk.rs b/tvix/eval/src/chunk.rs
index 95659cffa58f..e9c65db72590 100644
--- a/tvix/eval/src/chunk.rs
+++ b/tvix/eval/src/chunk.rs
@@ -155,13 +155,11 @@ impl Chunk {
             write!(writer, "{:4}\t", line)?;
         }
 
-        let a = |idx| {
-            match &self[idx] {
-                Value::Thunk(t) => t.debug_repr(),
-                Value::Closure(c) => format!("closure({:p})", c.lambda),
-                Value::Blueprint(b) => format!("blueprint({:p})", b),
-                val => format!("{}", val),
-            }
+        let a = |idx| match &self[idx] {
+            Value::Thunk(t) => t.debug_repr(),
+            Value::Closure(c) => format!("closure({:p})", c.lambda),
+            Value::Blueprint(b) => format!("blueprint({:p})", b),
+            val => format!("{}", val),
         };
 
         match self[idx] {
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-path-exists-child-of-file.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-path-exists-child-of-file.nix
index 8588f0bddfc1..c756bff755ba 100644
--- a/tvix/eval/src/tests/tvix_tests/eval-okay-path-exists-child-of-file.nix
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-path-exists-child-of-file.nix
@@ -1 +1 @@
-builtins.pathExists ("/dev/null/.")
\ No newline at end of file
+builtins.pathExists ("/dev/null/.")