Skip to content

Commit 8e031b2

Browse files
committed
cargo fmt
1 parent 4c5f5cd commit 8e031b2

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

src/execute/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ fn validate(layers: &[Layer], layer_schemas: &[Schema]) -> Result<()> {
144144

145145
/// Check if an aesthetic value is a null sentinel (explicit removal marker)
146146
fn is_null_sentinel(value: &AestheticValue) -> bool {
147-
matches!(value, AestheticValue::Literal(crate::plot::ParameterValue::Null))
147+
matches!(
148+
value,
149+
AestheticValue::Literal(crate::plot::ParameterValue::Null)
150+
)
148151
}
149152

150153
/// Merge global mappings into layer aesthetics and expand wildcards

src/parser/builder.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3350,7 +3350,10 @@ mod tests {
33503350

33513351
let literal_node = source.find_node(&root, "(literal_value) @lit").unwrap();
33523352
let parsed = parse_literal_value(&literal_node, &source).unwrap();
3353-
assert!(matches!(parsed, AestheticValue::Literal(ParameterValue::Null)));
3353+
assert!(matches!(
3354+
parsed,
3355+
AestheticValue::Literal(ParameterValue::Null)
3356+
));
33543357
}
33553358

33563359
// ========================================

src/plot/layer/geom/histogram.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ impl GeomTrait for Histogram {
8787
execute_query: &dyn Fn(&str) -> Result<DataFrame>,
8888
dialect: &dyn SqlDialect,
8989
) -> Result<StatResult> {
90-
stat_histogram(query, aesthetics, group_by, parameters, execute_query, dialect)
90+
stat_histogram(
91+
query,
92+
aesthetics,
93+
group_by,
94+
parameters,
95+
execute_query,
96+
dialect,
97+
)
9198
}
9299
}
93100

0 commit comments

Comments
 (0)