feat(tvix/eval): implement From<f64> for Value

Change-Id: I287282a195d6f752260242739332b2357791974a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7625
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Ryan Lahfa 2022-12-24 18:18:26 +01:00 committed by raitobezarius
parent 3b59f1edc1
commit 4cda236c0c

View file

@ -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)