mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 07:25:14 +01:00
fix: clippy
This commit is contained in:
@@ -17,12 +17,12 @@ use super::{
|
||||
};
|
||||
|
||||
pub fn translate_alter_table(
|
||||
alter: Box<(ast::QualifiedName, ast::AlterTableBody)>,
|
||||
alter: (ast::QualifiedName, ast::AlterTableBody),
|
||||
syms: &SymbolTable,
|
||||
schema: &Schema,
|
||||
mut program: ProgramBuilder,
|
||||
) -> Result<ProgramBuilder> {
|
||||
let (table_name, alter_table) = *alter;
|
||||
let (table_name, alter_table) = alter;
|
||||
let ast::Name(table_name) = table_name.name;
|
||||
|
||||
let Some(original_btree) = schema
|
||||
|
||||
@@ -108,7 +108,7 @@ pub fn translate_inner(
|
||||
program: ProgramBuilder,
|
||||
) -> Result<ProgramBuilder> {
|
||||
let program = match stmt {
|
||||
ast::Stmt::AlterTable(alter) => translate_alter_table(alter, syms, schema, program)?,
|
||||
ast::Stmt::AlterTable(alter) => translate_alter_table(*alter, syms, schema, program)?,
|
||||
ast::Stmt::Analyze(_) => bail_parse_error!("ANALYZE not supported yet"),
|
||||
ast::Stmt::Attach { .. } => bail_parse_error!("ATTACH not supported yet"),
|
||||
ast::Stmt::Begin(tx_type, tx_name) => translate_tx_begin(tx_type, tx_name, program)?,
|
||||
|
||||
Reference in New Issue
Block a user