From 48e045299dd409975e77878e6960fc8c429fece1 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 23 May 2024 10:26:30 +0200 Subject: fix(tvix/eval): NixString are bytes This is not necessarily valid UTF-8. Change-Id: I72f3157240772eb9c558e5699b4785e44d256fd4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11702 Autosubmit: flokli Reviewed-by: sterni Tested-by: BuildkiteCI --- tvix/eval/src/builtins/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval/src') diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 949fe844a20e..4a15f944a4b3 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -1505,7 +1505,7 @@ mod pure_builtins { let mut buf: Vec = vec![]; to_xml::value_to_xml(&mut buf, &value)?; - Ok(String::from_utf8(buf)?.into()) + Ok(buf.into()) } #[builtin("placeholder")] -- cgit 1.4.1