diff --git a/lykiadb-playground/src/lib.rs b/lykiadb-playground/src/lib.rs index 57dc067..3bf3b9b 100644 --- a/lykiadb-playground/src/lib.rs +++ b/lykiadb-playground/src/lib.rs @@ -38,12 +38,7 @@ pub fn tokenize(source: &str) -> Result { let token_tree = Tree { name: "Program".to_owned(), - children: Some( - tokens - .into_iter() - .map(TreeBuilder::token_to_tree) - .collect(), - ), + children: Some(tokens.into_iter().map(TreeBuilder::token_to_tree).collect()), span: last, }; diff --git a/lykiadb-server/src/plan/planner.rs b/lykiadb-server/src/plan/planner.rs index e2fafa6..2bfa7a0 100644 --- a/lykiadb-server/src/plan/planner.rs +++ b/lykiadb-server/src/plan/planner.rs @@ -1,6 +1,6 @@ use lykiadb_lang::ast::{expr::Expr, sql::SqlSelect}; -use crate::{engine::interpreter::HaltReason}; +use crate::engine::interpreter::HaltReason; use super::{Node, Plan}; pub struct Planner;