Skip to content

Commit ca619d4

Browse files
committed
reformat
1 parent 3f82649 commit ca619d4

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/writer/vegalite/layer.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,7 +3967,10 @@ mod tests {
39673967
);
39683968
// Box width is halved.
39693969
let bw = b["mark"]["width"]["expr"].as_str().unwrap_or("");
3970-
assert!(bw.contains("/ 2"), "side={s} expected halved width, got {bw}");
3970+
assert!(
3971+
bw.contains("/ 2"),
3972+
"side={s} expected halved width, got {bw}"
3973+
);
39713974
// xOffset encoding points at the combined column.
39723975
assert_eq!(
39733976
b["encoding"]["xOffset"]["field"],
@@ -3981,10 +3984,10 @@ mod tests {
39813984
assert!(
39823985
low.get("transform")
39833986
.and_then(|t| t.as_array())
3984-
.map(|arr| arr.iter().all(|tr| tr
3985-
.get("as")
3986-
.and_then(|s| s.as_str())
3987-
!= Some("__ggsql_box_side_offset__")))
3987+
.map(
3988+
|arr| arr.iter().all(|tr| tr.get("as").and_then(|s| s.as_str())
3989+
!= Some("__ggsql_box_side_offset__"))
3990+
)
39883991
.unwrap_or(true),
39893992
"side={s} lower whisker should not have side-shift transform"
39903993
);

0 commit comments

Comments
 (0)