diff options
Diffstat (limited to 'src/lisp')
-rw-r--r-- | src/lisp/eval.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lisp/eval.rs b/src/lisp/eval.rs index 75cb5c9..759cca0 100644 --- a/src/lisp/eval.rs +++ b/src/lisp/eval.rs | |||
@@ -14,15 +14,12 @@ use log::{error, info}; | |||
14 | 14 | ||
15 | pub type Context = Vec<String>; | 15 | pub type Context = Vec<String>; |
16 | 16 | ||
17 | pub struct Evaluator<'ctx, 'global> { | 17 | pub struct Evaluator<'global> { |
18 | pub app: &'global mut AppState<'ctx>, | 18 | pub app: &'global mut AppState, |
19 | pub context: Context, | 19 | pub context: Context, |
20 | } | 20 | } |
21 | 21 | ||
22 | impl<'ctx, 'global> Evaluator<'ctx, 'global> | 22 | impl<'global> Evaluator<'global> { |
23 | where | ||
24 | 'ctx: 'global, | ||
25 | { | ||
26 | pub fn eval(&mut self, expr: &LispExpr) -> Result<LispExpr, LispError> { | 23 | pub fn eval(&mut self, expr: &LispExpr) -> Result<LispExpr, LispError> { |
27 | match expr { | 24 | match expr { |
28 | LispExpr::Unit => Ok(expr.clone()), | 25 | LispExpr::Unit => Ok(expr.clone()), |