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/convert.rs | |
parent | ae1511dc11236601da174a146b1713b9d68ddc30 (diff) |
Make all ast spans optional.
Diffstat (limited to 'src/nibble/convert.rs')
-rw-r--r-- | src/nibble/convert.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<Option<_>>()?; - Some(ast::Call::new(self.name, args, span).into()) + Some(ast::Call::new(self.name.into(), args, span).into()) } } |