Fix errors
This commit is contained in:
parent
b5e659f09f
commit
b08a1c5f9a
@ -1,4 +1,4 @@
|
|||||||
use crate::{Error, Item, Result, Value, VariableMap};
|
use crate::{Error, Result, Value, VariableMap};
|
||||||
use comfy_table::{Cell, Color, ContentArrangement, Table as ComfyTable};
|
use comfy_table::{Cell, Color, ContentArrangement, Table as ComfyTable};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -123,9 +123,17 @@ impl From<&Value> for ValueType {
|
|||||||
|
|
||||||
ValueType::Map(value_nodes)
|
ValueType::Map(value_nodes)
|
||||||
}
|
}
|
||||||
Value::Table(_table) => ValueType::Table {
|
Value::Table(table) => ValueType::Table {
|
||||||
column_names: todo!(),
|
column_names: table
|
||||||
rows: todo!(),
|
.headers()
|
||||||
|
.iter()
|
||||||
|
.map(|column_name| Identifier::new(column_name.clone()))
|
||||||
|
.collect(),
|
||||||
|
rows: Box::new(Expression::Value(ValueNode::new(
|
||||||
|
ValueType::ListExact(Vec::with_capacity(0)),
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
))),
|
||||||
},
|
},
|
||||||
Value::Function(function) => ValueType::Function(function.clone()),
|
Value::Function(function) => ValueType::Function(function.clone()),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user