Use ahash in the compiler

This commit is contained in:
Noah 2020-12-19 15:26:41 -06:00
parent 64fa9ccba9
commit a0790d4906
5 changed files with 14 additions and 10 deletions

View file

@ -8,7 +8,7 @@ Inspirational file: https://github.com/python/cpython/blob/master/Python/symtabl
*/
use crate::error::{CompileError, CompileErrorType};
use indexmap::map::IndexMap;
use crate::IndexMap;
use rustpython_ast::{self as ast, Location};
use std::fmt;
@ -58,7 +58,7 @@ impl SymbolTable {
typ,
line_number,
is_nested,
symbols: IndexMap::new(),
symbols: IndexMap::default(),
sub_tables: vec![],
}
}