about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-08-19T15·36+0200
committerflokli <flokli@flokli.de>2023-08-20T21·52+0000
commit366e11b48a8e43b5075592f44f9923f07d13617a (patch)
tree7e1595d942726b1dcdc7015832c6e9da3af040df /tvix/eval/src/value
parentc67b18bf450b603cc9ab256ee541d01b4e0f861f (diff)
refactor(tvix/eval): don't use `format!` in `write!` args r/6509
Change-Id: I0b2fdb418c2e36280d5c551a81634e1742193903
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9105
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs
index 29b73f26f061..254bbbc09a04 100644
--- a/tvix/eval/src/value/mod.rs
+++ b/tvix/eval/src/value/mod.rs
@@ -751,7 +751,7 @@ fn total_fmt_float<F: std::fmt::Write>(num: f64, mut f: F) -> std::fmt::Result {
         }
     }
 
-    write!(f, "{}", format!("{}", String::from_utf8_lossy(s)))
+    write!(f, "{}", String::from_utf8_lossy(s))
 }
 
 impl TotalDisplay for Value {