From 1415c8f9b89699000ef8d864ff8f0e1bebca4a5f Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Thu, 4 Apr 2024 22:12:14 -0600 Subject: Handle aliases in read() Instead of handling aliases in the recite() function, which requires two loops to handle properly with the current implementation, offload checking for aliases to the read() function. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e0d0ed1..3e0a2e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ fn repl(away: &mut Arc>, env: &mut Environment) { *away.lock().unwrap() = true; // Parse the poem - let poem = Poem::read(poetry); + let poem = Poem::read(poetry, env); let poem = match poem { Ok(poem) => poem, Err(e) => { -- cgit v1.2.3