From 487ce4fe0fa081f58d790d7d6417bf7d2659197c Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Sat, 9 Jan 2021 11:53:21 +0000 Subject: Make all ast spans optional. --- src/nibble/cst.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nibble/cst.rs') 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, -- cgit v1.2.3