From 1a99b10b7e48ed7cb6d6c8506c4a102a0b50924f Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 19 Aug 2023 17:25:06 +0200 Subject: 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 Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/eval/src/observer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tvix/eval/src') 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 TracingObserver { // 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), -- cgit 1.4.1