mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-25 06:59:15 +00:00
Fix clippy linting error, use enumerate (#266)
This commit is contained in:
parent
038ef985a7
commit
a5b752484e
1 changed files with 1 additions and 3 deletions
|
@ -2388,8 +2388,7 @@ fn parse_ctes() {
|
||||||
);
|
);
|
||||||
|
|
||||||
fn assert_ctes_in_select(expected: &[&str], sel: &Query) {
|
fn assert_ctes_in_select(expected: &[&str], sel: &Query) {
|
||||||
let mut i = 0;
|
for (i, exp) in expected.iter().enumerate() {
|
||||||
for exp in expected {
|
|
||||||
let Cte { alias, query } = &sel.ctes[i];
|
let Cte { alias, query } = &sel.ctes[i];
|
||||||
assert_eq!(*exp, query.to_string());
|
assert_eq!(*exp, query.to_string());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
@ -2401,7 +2400,6 @@ fn parse_ctes() {
|
||||||
alias.name
|
alias.name
|
||||||
);
|
);
|
||||||
assert!(alias.columns.is_empty());
|
assert!(alias.columns.is_empty());
|
||||||
i += 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue