From 8be5ce8d85f39c3cf48c987a1d30c98ad85aaaf4 Mon Sep 17 00:00:00 2001 From: apakhomov Date: Fri, 15 Nov 2024 18:33:32 +0300 Subject: [PATCH] Clippy fix --- src/optimizer/mod.rs | 7 +++---- src/parser/mod.rs | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) 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)> {