From 1899f8fab028478e8ca403f349d2f793c32c1539 Mon Sep 17 00:00:00 2001 From: apakhomov Date: Fri, 15 Nov 2024 18:43:51 +0300 Subject: [PATCH] Fix clippy warnings --- agenda.md | 2 +- src/catalog/mod.rs | 1 + src/optimizer/mod.rs | 2 ++ src/parser/mod.rs | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/agenda.md b/agenda.md index 56b41e8..94bdb1b 100644 --- a/agenda.md +++ b/agenda.md @@ -6,7 +6,7 @@ Today we are going to: - [ ] rewrite logical plan to have full qualified names for tables - - [ ] implement Catalog API + - [x] implement Catalog API - [ ] try to write THE SIMPLEST optimizer in the world - [ ] FilterRow - [ ] execute first plan ?* diff --git a/src/catalog/mod.rs b/src/catalog/mod.rs index d2fa50c..a08d828 100644 --- a/src/catalog/mod.rs +++ b/src/catalog/mod.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] use std::collections::HashMap; pub struct Catalog { diff --git a/src/optimizer/mod.rs b/src/optimizer/mod.rs index 8bf4118..36ff74c 100644 --- a/src/optimizer/mod.rs +++ b/src/optimizer/mod.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use core::panic; use crate::{ diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 6f0eab3..cb5afbc 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -414,7 +414,7 @@ impl<'a> Parser<'a> { } } - fn postfix_operator_bp(op: &Op) -> Option<(u8, ())> { + fn postfix_operator_bp(_op: &Op) -> Option<(u8, ())> { None }