git.delta.rocks / jrsonnet / refs/commits / 0bd0b86dc362

difftreelog

fix(evaluator) fix padding argument in yaml

Lach2020-08-26parent: #0f6b269.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/val.rsdiffbeforeafterboth
9 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::True
438 } else {
439 LiteralType::False
440 }))
441 )
435 ]),442 ]),
436 false443 false