Skip to content

Commit

Permalink
test: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Aug 10, 2023
1 parent 4ab075d commit fd53380
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/jsonnet/src/val_modify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub unsafe extern "C" fn jsonnet_json_array_append(_vm: &VM, arr: &mut Val, val:
}

new.push(Thunk::evaluated(val.clone()));
*arr = Val::Arr(ArrValue::lazy(Cc::new(new)));
*arr = Val::Arr(ArrValue::lazy(new));
}
_ => panic!("should receive array"),
}
Expand Down
10 changes: 7 additions & 3 deletions crates/jrsonnet-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,13 @@ pub mod tests {
el!(
Index {
indexable: el!(Var("std".into()), 1, 4),
index: el!(Str("deepJoin".into()), 5, 13),
#[cfg(feature = "exp-null-coaelse")]
null_coaelse: false,
parts: vec![
IndexPart {
value: el!(Str("deepJoin".into()), 5, 13),
#[cfg(feature = "exp-null-coaelse")]
null_coaelse: false,
},
],
},
1,
13
Expand Down

0 comments on commit fd53380

Please sign in to comment.