Skip to content

Commit 8104de3

Browse files
committed
Update build.rs
1 parent bbbd708 commit 8104de3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use std::io::Write;
55
use std::process::Command;
66
use tucana::shared::value::Kind;
77

8-
use tucana::shared::{RuntimeFunctionDefinition, RuntimeParameterDefinition, Translation, Value};
8+
use tucana::shared::{
9+
DataType, RuntimeFunctionDefinition, RuntimeParameterDefinition, Translation, Value,
10+
};
911

1012
macro_rules! print_on_build {
1113
($($tokens: tt)*) => {
@@ -201,7 +203,7 @@ fn main() {
201203
}
202204

203205
for code in code_blocks {
204-
match serde_json::from_str::<RuntimeFunctionDefinition>(&code) {
206+
match serde_json::from_str::<DataType>(&code) {
205207
Ok(def) => {
206208
// let quote = runtime_function_definition_to_token(def);
207209
// write!(file, "{},", quote).expect("Cannot write to file");

0 commit comments

Comments
 (0)