difftreelog
fix make to_string unwrap value
in: master
1 file changed
crates/jrsonnet-evaluator/src/val.rsdiffbeforeafterboth407}407}408408409pub fn to_string(val: &Val) -> Result<Rc<str>> {409pub fn to_string(val: &Val) -> Result<Rc<str>> {410 Ok(match val {410 Ok(match val.unwrap_if_lazy()? {411 Val::Bool(true) => "true".into(),411 Val::Bool(true) => "true".into(),412 Val::Null => "null".into(),412 Val::Null => "null".into(),413 Val::Str(s) => s.clone(),413 Val::Str(s) => s.clone(),