about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-08-19T15·25+0200
committerflokli <flokli@flokli.de>2023-08-20T21·51+0000
commit1a99b10b7e48ed7cb6d6c8506c4a102a0b50924f (patch)
tree6d2ec29833e9878e0d1457dddefb4293a6adca1f /tvix/eval
parentded577a73b61c63ed7c863c1896e2037324aa450 (diff)
refactor(tvix/eval): cargo clippy r/6505
This passes a unit value to the function.

Change-Id: I4df3ad8fb0f35c0f110cee3349971ae28ce2878c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9101
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/observer.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tvix/eval/src/observer.rs b/tvix/eval/src/observer.rs
index cdc6ca16ff97..63478c791b35 100644
--- a/tvix/eval/src/observer.rs
+++ b/tvix/eval/src/observer.rs
@@ -156,7 +156,10 @@ impl<W: Write> TracingObserver<W> {
             // the type of (and avoid recursing).
             Value::List(l) => write!(&mut self.writer, "list[{}] ", l.len()),
             Value::Attrs(a) => write!(&mut self.writer, "attrs[{}] ", a.len()),
-            Value::Thunk(t) if t.is_evaluated() => Ok(self.write_value(&t.value())),
+            Value::Thunk(t) if t.is_evaluated() => {
+                self.write_value(&t.value());
+                Ok(())
+            }
 
             // For other value types, defer to the standard value printer.
             _ => write!(&mut self.writer, "{} ", val),