From 82d00772f036a80e8875207e2a11bd8ef3d2d615 Mon Sep 17 00:00:00 2001 From: Cody Date: Fri, 16 Dec 2022 04:21:08 -0600 Subject: Remove allocation from token- instead use 'a lifetime This changes token from having an owned string instead opting to use a str with the same lifetime as the lexer itself. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5334746..fa355c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ unused_lifetimes )] +pub mod ast; pub mod lexer; use lexer::Lexer; -- cgit v1.2.3