cargo clippy

This commit is contained in:
Pierre HUBERT 2023-02-07 14:59:00 +01:00
parent 3eeeac6841
commit 51a2717590

View File

@ -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(),