Do not box ModuleRef.

This commit is contained in:
Stephen Chung
2020-10-31 23:51:59 +08:00
parent 42eac410b7
commit abbee80e5d
4 changed files with 7 additions and 7 deletions

View File

@@ -265,7 +265,7 @@ fn parse_fn_call(
lib: &mut FunctionsLib,
id: String,
capture: bool,
mut namespace: Option<Box<ModuleRef>>,
mut namespace: Option<ModuleRef>,
settings: ParseSettings,
) -> Result<Expr, ParseError> {
let (token, token_pos) = input.peek().unwrap();
@@ -898,7 +898,7 @@ fn parse_primary(
} else {
let mut m: ModuleRef = Default::default();
m.push((name, pos));
modules = Some(Box::new(m));
modules = Some(m);
}
Expr::Variable(Box::new((Ident::new(id2, pos2), modules, 0, index)))