From ccb17fedaa4587879778e250c8adaf847d71fd90 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 24 Mar 2021 13:05:40 +0530 Subject: logging stuff --- flake.nix | 1 + src/app.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index cd4d18a..062299a 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,7 @@ pkgs.SDL2_ttf ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; + RUST_LOG="info"; }; }); } diff --git a/src/app.rs b/src/app.rs index ef299cd..7417dae 100644 --- a/src/app.rs +++ b/src/app.rs @@ -281,7 +281,7 @@ impl<'ctx> AppState<'ctx> { let lisp_expr = &self.command_box.text; let mut parser = Parser::new(Lexer::new(lisp_expr, 0)); let res = parser.parse_single_expr(); - match env::eval(&res.unwrap(), self) { + match env::eval(&res.unwrap(), self, None) { Ok(val) => { self.message.text = format!("{}", val); } -- cgit v1.2.3