Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PakhomovAlexander committed Nov 15, 2024
1 parent 2cc4cd6 commit 8be5ce8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/optimizer/mod.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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},
};
Expand Down
4 changes: 1 addition & 3 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)> {
Expand Down

0 comments on commit 8be5ce8

Please sign in to comment.