Update symbol_declaration.rs

This commit is contained in:
Yanting Zhang 2022-07-17 13:15:02 +08:00
parent 7b62b1b642
commit 02c25c6a72
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ impl<'a> SymbolDeclaration {
fn gen_var_width(json: &JsonValue, dim_path: Vec<&str>) -> usize { fn gen_var_width(json: &JsonValue, dim_path: Vec<&str>) -> usize {
let json_dims = Tools::match_tags(vec![json], dim_path); let json_dims = Tools::match_tags(vec![json], dim_path);
//assert!(json_dims.len() == 0 || json_dims.len() == 2); assert!(json_dims.len() == 0 || json_dims.len() == 1 ||json_dims.len() == 2);
match json_dims.len() { match json_dims.len() {
2 => { 2 => {