diff --git a/Cargo.toml b/Cargo.toml index 93c6cd7f..5f5cd914 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "kip-sql" -version = "0.0.1-alpha.2" +version = "0.0.1-alpha.3" edition = "2021" authors = ["Kould ", "Xwg "] description = "build the SQL layer of KipDB database" diff --git a/src/marco/mod.rs b/src/marco/mod.rs index ff9362e8..28be99ce 100644 --- a/src/marco/mod.rs +++ b/src/marco/mod.rs @@ -24,10 +24,6 @@ #[macro_export] macro_rules! implement_from_tuple { ($struct_name:ident, ($($field_name:ident : $field_type:ty => $closure:expr),+)) => { - use crate::types::tuple::Tuple; - use crate::types::LogicalType; - use crate::types::value::DataValue; - impl From for $struct_name { fn from(tuple: Tuple) -> Self { fn try_get(tuple: &Tuple, field_name: &str) -> Option { @@ -61,6 +57,9 @@ macro_rules! implement_from_tuple { mod test { use std::sync::Arc; use crate::catalog::{ColumnCatalog, ColumnDesc}; + use crate::types::LogicalType; + use crate::types::tuple::Tuple; + use crate::types::value::DataValue; fn build_tuple() -> Tuple { let columns = vec![