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:
parent
3b59f1edc1
commit
4cda236c0c
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue