about summary refs log tree commit diff
path: root/tvix/eval/src/value/json.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-08-19T15·20+0200
committerflokli <flokli@flokli.de>2023-08-20T21·51+0000
commit1f02dc7ebae40eb9e6f47c68d4469ca8409e418e (patch)
tree65153ffbc5b5d20e0af5fba1bb5247a6da8546b7 /tvix/eval/src/value/json.rs
parent690884426bc1809683b2f57c6c18b88163c87363 (diff)
refactor(tvix/eval): cargo clippy &GenCo r/6502
Change-Id: I6b1b902ccbc12bf2acdb0fdf406d6ef336ff0b2f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9098
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/eval/src/value/json.rs')
-rw-r--r--tvix/eval/src/value/json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/value/json.rs b/tvix/eval/src/value/json.rs
index aa5ebe32f4d0..38496f8f35f8 100644
--- a/tvix/eval/src/value/json.rs
+++ b/tvix/eval/src/value/json.rs
@@ -41,7 +41,7 @@ impl Value {
                 // Attribute sets with a callable `__toString` attribute
                 // serialise to the string-coerced version of the result of
                 // calling that.
-                if let Some(s) = attrs.try_to_string(&co, CoercionKind::Weak).await {
+                if let Some(s) = attrs.try_to_string(co, CoercionKind::Weak).await {
                     return Ok(Json::String(s.as_str().to_string()));
                 }