From debdfebec5fd3bcf808f4f5e3f3eca707d37a896 Mon Sep 17 00:00:00 2001 From: Vedat Can Keklik Date: Wed, 21 Aug 2024 21:56:55 +0300 Subject: [PATCH] fix: fmt --- lykiadb-playground/src/lib.rs | 7 +------ lykiadb-server/src/plan/planner.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) 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;