mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +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) {
|
||||
let mut i = 0;
|
||||
for exp in expected {
|
||||
for (i, exp) in expected.iter().enumerate() {
|
||||
let Cte { alias, query } = &sel.ctes[i];
|
||||
assert_eq!(*exp, query.to_string());
|
||||
assert_eq!(
|
||||
|
@ -2401,7 +2400,6 @@ fn parse_ctes() {
|
|||
alias.name
|
||||
);
|
||||
assert!(alias.columns.is_empty());
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue