diff --git a/src/parse_result.rs b/src/parse_result.rs index 1a185a3..4063d80 100644 --- a/src/parse_result.rs +++ b/src/parse_result.rs @@ -140,7 +140,7 @@ impl ParseResult { } } } - }, + } NodeRef::ColumnRef(c) => { if !has_filter_columns { continue; diff --git a/tests/filter_column_tests.rs b/tests/filter_column_tests.rs index 9f4e9a7..f6c59ba 100644 --- a/tests/filter_column_tests.rs +++ b/tests/filter_column_tests.rs @@ -45,10 +45,7 @@ fn it_recognizes_null_tests() { fn it_finds_coalesce_argument_names() { let result = parse("SELECT * FROM x WHERE x.y = COALESCE(z.a, z.b)").unwrap(); let filter_columns: Vec<(Option, String)> = sorted(result.filter_columns).collect(); - assert_eq!( - filter_columns, - [(Some("x".into()), "y".into()), (Some("z".into()), "a".into()), (Some("z".into()), "b".into())] - ); + assert_eq!(filter_columns, [(Some("x".into()), "y".into()), (Some("z".into()), "a".into()), (Some("z".into()), "b".into())]); } #[test]