Update symbol_declaration.rs
This commit is contained in:
parent
7b62b1b642
commit
02c25c6a72
|
@ -286,7 +286,7 @@ impl<'a> SymbolDeclaration {
|
|||
|
||||
fn gen_var_width(json: &JsonValue, dim_path: Vec<&str>) -> usize {
|
||||
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() {
|
||||
2 => {
|
||||
|
|
Loading…
Reference in New Issue