Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
can-keklik committed Aug 21, 2024
1 parent 3e3be9b commit 762aa18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lykiadb-playground/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn tokenize(source: &str) -> Result<JsValue, JsValue> {
children: Some(
tokens
.into_iter()
.map(|t| TreeBuilder::token_to_tree(t))
.map(TreeBuilder::token_to_tree)
.collect(),
),
span: last,
Expand Down
10 changes: 8 additions & 2 deletions lykiadb-server/src/plan/planner.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
use lykiadb_lang::ast::{expr::Expr, sql::SqlSelect, visitor::ExprEvaluator};
use lykiadb_lang::ast::{expr::Expr, sql::SqlSelect};

use crate::{engine::interpreter::HaltReason, value::types::RV};
use crate::{engine::interpreter::HaltReason};

use super::{Node, Plan};
pub struct Planner;

impl Default for Planner {
fn default() -> Self {
Self::new()
}
}

impl Planner {
pub fn new() -> Planner {
Planner {}
Expand Down

0 comments on commit 762aa18

Please sign in to comment.