diff options
author | Greg Brown <gmb60@cam.ac.uk> | 2021-01-09 11:53:21 +0000 |
---|---|---|
committer | Greg Brown <gmb60@cam.ac.uk> | 2021-01-09 11:53:21 +0000 |
commit | 487ce4fe0fa081f58d790d7d6417bf7d2659197c (patch) | |
tree | 435dbca41a6a8c67eac0fd875599103c611349bb /src/nibble/cst.rs | |
parent | ae1511dc11236601da174a146b1713b9d68ddc30 (diff) |
Make all ast spans optional.
Diffstat (limited to 'src/nibble/cst.rs')
-rw-r--r-- | src/nibble/cst.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nibble/cst.rs b/src/nibble/cst.rs index 383eae9..2b52678 100644 --- a/src/nibble/cst.rs +++ b/src/nibble/cst.rs @@ -260,7 +260,7 @@ impl File { ); names.push(stmt.name.clone()); map.push(ast::Function::new( - stmt.name.clone(), + stmt.name.into(), count, stmt.expr.convert(&mut context)?, span, |