Subject: [PATCH 1/2] feat(tvix/eval): implement From<f64> for Value

From: Ryan Lahfa <[email-masked]>
Date: Sat, 24 Dec 2022 18:27:45 +0100

---
 tvix/eval/src/value/mod.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs
index 9aed486d4..124ce881d 100644
--- a/tvix/eval/src/value/mod.rs
+++ b/tvix/eval/src/value/mod.rs
@@ -530,6 +530,12 @@ impl From<i64> for Value {
     }
 }
 
+impl From<f64> for Value {
+    fn from(i: f64) -> Self {
+        Self::Float(i)
+    }
+}
+
 impl From<PathBuf> for Value {
     fn from(path: PathBuf) -> Self {
         Self::Path(path)
-- 
2.38.1