From 2066cf72565ebb091382a9500b29b86a3e4ef3fa Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 22 Oct 2023 12:37:15 -0400 Subject: [PATCH] Clean up --- src/abstract_tree/tool.rs | 2 +- src/value/value_type.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/abstract_tree/tool.rs b/src/abstract_tree/tool.rs index 5e2ad09..23bacff 100644 --- a/src/abstract_tree/tool.rs +++ b/src/abstract_tree/tool.rs @@ -8,7 +8,7 @@ use std::{ use serde::{Deserialize, Serialize}; use tree_sitter::Node; -use crate::{expression, AbstractTree, Error, Expression, Result, Table, Value, VariableMap}; +use crate::{AbstractTree, Error, Expression, Result, Table, Value, VariableMap}; #[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord)] pub enum Tool { diff --git a/src/value/value_type.rs b/src/value/value_type.rs index 6e675af..8363ccd 100644 --- a/src/value/value_type.rs +++ b/src/value/value_type.rs @@ -77,7 +77,10 @@ impl Display for ValueType { } ValueType::Empty => write!(f, "empty"), ValueType::Map(_map) => write!(f, "map"), - ValueType::Table { column_names, rows } => { + ValueType::Table { + column_names: _, + rows: _, + } => { write!(f, "table") } ValueType::Function(function) => write!(f, "{function}"), @@ -120,7 +123,7 @@ impl From<&Value> for ValueType { ValueType::Map(value_nodes) } - Value::Table(table) => ValueType::Table { + Value::Table(_table) => ValueType::Table { column_names: todo!(), rows: todo!(), },