refactor(tvix/eval): cargo clippy

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
This commit is contained in:
Florian Klink 2023-08-19 17:25:06 +02:00 committed by flokli
parent ded577a73b
commit 1a99b10b7e

View file

@ -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),