diff options
author | Akshay <[email protected]> | 2021-03-24 07:35:40 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-03-24 07:35:40 +0000 |
commit | ccb17fedaa4587879778e250c8adaf847d71fd90 (patch) | |
tree | 3161c80bbb499ed0d00cc07fc9d023a57de1fc36 | |
parent | 05c6f24c0b371a465a8735cfd1ac17c0394363cb (diff) |
logging stuff
-rw-r--r-- | flake.nix | 1 | ||||
-rw-r--r-- | src/app.rs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -50,6 +50,7 @@ | |||
50 | pkgs.SDL2_ttf | 50 | pkgs.SDL2_ttf |
51 | ]; | 51 | ]; |
52 | RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; | 52 | RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; |
53 | RUST_LOG="info"; | ||
53 | }; | 54 | }; |
54 | }); | 55 | }); |
55 | } | 56 | } |
@@ -281,7 +281,7 @@ impl<'ctx> AppState<'ctx> { | |||
281 | let lisp_expr = &self.command_box.text; | 281 | let lisp_expr = &self.command_box.text; |
282 | let mut parser = Parser::new(Lexer::new(lisp_expr, 0)); | 282 | let mut parser = Parser::new(Lexer::new(lisp_expr, 0)); |
283 | let res = parser.parse_single_expr(); | 283 | let res = parser.parse_single_expr(); |
284 | match env::eval(&res.unwrap(), self) { | 284 | match env::eval(&res.unwrap(), self, None) { |
285 | Ok(val) => { | 285 | Ok(val) => { |
286 | self.message.text = format!("{}", val); | 286 | self.message.text = format!("{}", val); |
287 | } | 287 | } |