remove pattern matching over Name::Quoted

This commit is contained in:
Nikita Sivukhin
2025-09-25 12:44:32 +04:00
parent 506908e648
commit 2f4d76ec6d
10 changed files with 34 additions and 48 deletions

View File

@@ -448,9 +448,7 @@ impl IncrementalView {
// Store the alias mapping if there is an alias
if let Some(alias_enum) = alias {
let alias_name = match alias_enum {
ast::As::As(name) | ast::As::Elided(name) => match name {
ast::Name::Ident(s) | ast::Name::Quoted(s) => s,
},
ast::As::As(name) | ast::As::Elided(name) => name.as_str(),
};
aliases.insert(alias_name.to_string(), table_name.to_string());
}