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/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 1ef3f9911def..807dc55f97cc 100644
--- a/tvix/eval/src/value/json.rs
+++ b/tvix/eval/src/value/json.rs
@@ -40,7 +40,7 @@ impl Value {
             }
 
             Value::List(l) => {
-                let mut out = vec![];
+                let mut out = Vec::with_capacity(l.len());
 
                 for val in l.into_iter() {
                     let (json_item, ctx) = Box::pin(val.into_contextful_json(co)).await?;