Skip to content

Commit cfb4dff

Browse files
committed
chore: lint fix
1 parent d46851c commit cfb4dff

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

datafusion-postgres/src/sql.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,18 @@ impl ResolveUnqualifiedIdentifer {
179179
fn get_table_aliases(tables: &[TableWithJoins]) -> HashSet<String> {
180180
let mut aliases = HashSet::new();
181181
for table_with_joins in tables {
182-
if let TableFactor::Table { alias, .. } = &table_with_joins.relation {
183-
if let Some(alias) = &alias {
184-
aliases.insert(alias.name.value.clone());
185-
}
182+
if let TableFactor::Table {
183+
alias: Some(alias), ..
184+
} = &table_with_joins.relation
185+
{
186+
aliases.insert(alias.name.value.clone());
186187
}
187188
for join in &table_with_joins.joins {
188-
if let TableFactor::Table { alias, .. } = &join.relation {
189-
if let Some(alias) = &alias {
190-
aliases.insert(alias.name.value.clone());
191-
}
189+
if let TableFactor::Table {
190+
alias: Some(alias), ..
191+
} = &join.relation
192+
{
193+
aliases.insert(alias.name.value.clone());
192194
}
193195
}
194196
}

0 commit comments

Comments
 (0)