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/convert.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nibble/convert.rs') diff --git a/src/nibble/convert.rs b/src/nibble/convert.rs index 1a175a0..422d100 100644 --- a/src/nibble/convert.rs +++ b/src/nibble/convert.rs @@ -73,7 +73,7 @@ impl Convert for Ident { match context.lookup(&self)? { Binding::Variable(index) => Some(ast::Variable::new(self.into(), index).into()), Binding::Parameter(index) => Some(ast::Parameter::new(self.into(), index).into()), - Binding::Global => Some(ast::Call::new(self, Vec::new(), Some(span)).into()), + Binding::Global => Some(ast::Call::new(self.into(), Vec::new(), Some(span)).into()), } } } @@ -86,7 +86,7 @@ impl Convert for Call { .into_iter() .map(|arg| arg.convert(context)) .collect::>()?; - Some(ast::Call::new(self.name, args, span).into()) + Some(ast::Call::new(self.name.into(), args, span).into()) } } -- cgit v1.2.3