Update symbol_declaration.rs

This commit is contained in:
Yanting Zhang 2022-07-17 13:10:09 +08:00
parent f4932e5bfc
commit 7b62b1b642
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() == 2);
match json_dims.len() { match json_dims.len() {
2 => { 2 => {