difftreelog
fix(evaluator) fix padding argument in yaml
in: master
1 file changed
crates/jrsonnet-evaluator/src/val.rsdiffbeforeafterboth9 native::NativeCallback,9 native::NativeCallback,10 throw, with_state, Context, ObjValue, Result,10 throw, with_state, Context, ObjValue, Result,11};11};12use jrsonnet_parser::{el, Arg, ArgsDesc, Expr, ExprLocation, LocExpr, ParamsDesc};12use jrsonnet_parser::{el, Arg, ArgsDesc, Expr, ExprLocation, LiteralType, LocExpr, ParamsDesc};13use std::{13use std::{14 cell::RefCell,14 cell::RefCell,15 collections::HashMap,15 collections::HashMap,431 )),431 )),432 ArgsDesc(vec![432 ArgsDesc(vec![433 Arg(None, el!(Expr::Var("__tmp__to_json__".into()))),433 Arg(None, el!(Expr::Var("__tmp__to_json__".into()))),434 Arg(None, el!(Expr::Str(" ".repeat(padding).into())))434 Arg(435 None,436 el!(Expr::Literal(if padding != 0 {437 LiteralType::True438 } else {439 LiteralType::False440 }))441 )435 ]),442 ]),436 false443 false