diff --git a/src/main.rs b/src/main.rs index d365ca9..06053b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,7 +119,7 @@ fn tex_type_str(t: &TreeNode) -> String { match &t.r#type { NodeType::Null => "NULL".to_string(), NodeType::Boolean => "bool".to_string(), - NodeType::Array { item } => format!("{}[]", tex_type_str(&item)), + NodeType::Array { item } => format!("{}[]", tex_type_str(item)), NodeType::Object { .. } => t.name.to_string(), NodeType::String => "string".to_string(), NodeType::Number => "number".to_string(),