Skip to content

Commit 3c69970

Browse files
committed
hail fmt and clippy
1 parent beebc53 commit 3c69970

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/plot/layer/geom/bar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl GeomTrait for Bar {
3636
// translate it to 'size'.
3737
defaults: &[
3838
("pos1", DefaultAestheticValue::Dummy), // Optional - stat synthesises a dummy if omitted
39-
("pos2", DefaultAestheticValue::Null), // Optional - stat computes count when omitted
39+
("pos2", DefaultAestheticValue::Null), // Optional - stat computes count when omitted
4040
("pos2end", DefaultAestheticValue::Delayed),
4141
("weight", DefaultAestheticValue::Null),
4242
("fill", DefaultAestheticValue::String("black")),

src/plot/layer/orientation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ fn detect_from_scales(
166166
Geom::from_type(*geom).aesthetics().get("pos1"),
167167
Some(DefaultAestheticValue::Dummy)
168168
);
169-
if has_pos2 && !has_pos1 && !(pos1_is_dummy && !has_pos1_mapping) {
169+
if has_pos2 && !has_pos1 && (!pos1_is_dummy || has_pos1_mapping) {
170170
return TRANSPOSED;
171171
}
172172
if has_pos1 && !has_pos2 {

0 commit comments

Comments
 (0)