Skip to content

Commit 3671fc1

Browse files
committed
reformat: run cargo fmt
1 parent 3485f24 commit 3671fc1

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

datafusion/core/tests/sql/functions.rs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -612,14 +612,12 @@ async fn pi_function() -> Result<()> {
612612
}
613613

614614
macro_rules! assert_logical_plan {
615-
($ctx:expr, $udf_call:expr, $expected:expr) => {
616-
{
617-
let sql = format!("SELECT {}", $udf_call);
618-
let logical_plan = $ctx.create_logical_plan(&sql)?;
619-
let formatted = format!("{:?}", logical_plan);
620-
assert_eq!($expected, formatted.split("\n").collect::<Vec<&str>>());
621-
}
622-
};
615+
($ctx:expr, $udf_call:expr, $expected:expr) => {{
616+
let sql = format!("SELECT {}", $udf_call);
617+
let logical_plan = $ctx.create_logical_plan(&sql)?;
618+
let formatted = format!("{:?}", logical_plan);
619+
assert_eq!($expected, formatted.split("\n").collect::<Vec<&str>>());
620+
}};
623621
}
624622

625623
#[tokio::test]
@@ -629,10 +627,7 @@ async fn test_log_round_logical_plan() -> Result<()> {
629627
assert_logical_plan!(
630628
ctx,
631629
"log(2.0, 2)",
632-
vec![
633-
"Projection: log(Float64(2), Int64(2))",
634-
" EmptyRelation",
635-
]
630+
vec!["Projection: log(Float64(2), Int64(2))", " EmptyRelation",]
636631
);
637632

638633
assert_logical_plan!(

0 commit comments

Comments
 (0)