diff --git a/src/optimizer/mod.rs b/src/optimizer/mod.rs index 3ec4844..8bf4118 100644 --- a/src/optimizer/mod.rs +++ b/src/optimizer/mod.rs @@ -1,9 +1,8 @@ use core::panic; -use std::collections::HashMap; use crate::{ analyzer::{LogicalNode, LogicalPlan, Operator}, - catalog::{Catalog, ColumnId, ColumnSchema, TableId}, + catalog::{Catalog, ColumnSchema, TableId}, }; struct Optimizer { @@ -120,11 +119,11 @@ struct Filter {} #[cfg(test)] mod tests { - use std::{collections::HashMap, vec}; + use std::vec; use crate::{ analyzer::{Analyzer, LogicalPlan}, - catalog::{Catalog, ColumnId, DataType, TableId, TableSchema, TableSchemaBuilder}, + catalog::{Catalog, DataType, TableSchemaBuilder}, optimizer::{Column, Project, TableScan}, parser::{lexer::Lexer, Parser}, }; diff --git a/src/parser/mod.rs b/src/parser/mod.rs index f81a255..6f0eab3 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -415,9 +415,7 @@ impl<'a> Parser<'a> { } fn postfix_operator_bp(op: &Op) -> Option<(u8, ())> { - match op { - _ => None, - } + None } fn infix_operator_bp(op: &Op) -> Option<(u8, u8)> {