mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
fix: clippy
This commit is contained in:
parent
3b36c3e771
commit
e3da5a1f09
2 changed files with 3 additions and 3 deletions
|
@ -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)?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue