This commit is contained in:
louisfd 2024-06-13 10:58:34 -04:00
parent 9218cae576
commit e7cdfc9e4b
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ impl VariableTracker {
let declaration = self
.variable_uses
.get_mut(&declaration_ident)
.expect(&format!("Struct {:?} does not exist", declaration_ident));
.unwrap_or_else(|| panic!("Struct {:?} does not exist", declaration_ident));
declaration.num_used += 1;
}
}