summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorGreg Brown <gmb60@cam.ac.uk>2020-11-25 15:45:32 +0000
committerGreg Brown <gmb60@cam.ac.uk>2020-11-25 15:45:32 +0000
commite2cd078cb16834256439ac775cb8cf1e17679181 (patch)
tree22b4f54ccfdb19d5d9a919a7adc6984fb30cc955 /src/main.rs
parentd3da0a832f3fda143d3722b59ff42b6ccb3ac953 (diff)
Add substitution.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0d4ab99..c180302 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,7 +21,7 @@ fn main() {
.and_then(|_| syn::parse_str(&input).map_err(|e| Box::new(e) as Box<dyn Error>))
.and_then(|nibble: Expression| {
nibble
- .convert(&Context::new())
+ .convert(&mut Context::new())
.well_typed(&mut FlastContext::new())
.map_err(|e| Box::new(e) as Box<dyn Error>)
})