summaryrefslogtreecommitdiff
path: root/autochomp
diff options
context:
space:
mode:
authorGreg Brown <gmb60@cam.ac.uk>2021-01-21 09:42:02 +0000
committerGreg Brown <gmb60@cam.ac.uk>2021-01-21 17:45:02 +0000
commit1a93b1f82bc8c21d24e67031c5eca96830e928c7 (patch)
tree4c3fbfac9f0fbbc31defee03cd460e0400278d30 /autochomp
parentfaa3f30deb32d0a1fd7cb196559762635b22ecfd (diff)
Fix many warnings.
Diffstat (limited to 'autochomp')
-rw-r--r--autochomp/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/autochomp/src/lib.rs b/autochomp/src/lib.rs
index ebe18a6..545b28e 100644
--- a/autochomp/src/lib.rs
+++ b/autochomp/src/lib.rs
@@ -232,7 +232,7 @@ impl Convert for CallOrVariable1 {
Opt26::None1(_) => {
let binding = context
.lookup(&name)
- .ok_or_else(|| ConvertError::UndeclaredName(name.clone()))?;
+ .ok_or_else(|| ConvertError::UndeclaredName(Box::new(name.clone())))?;
Ok(match binding {
Binding::Variable(index) => NamedExpression {