diff options
| author | Cody <cody@codyq.dev> | 2022-12-16 04:21:08 -0600 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2022-12-16 04:21:08 -0600 |
| commit | 82d00772f036a80e8875207e2a11bd8ef3d2d615 (patch) | |
| tree | 3714583aa0f8dd7f3ac5584ad4f97933eacdccac /src/main.rs | |
| parent | 900bd3d64ac4c5c4c1511ab8388da3f2ed77849f (diff) | |
| download | sloth-82d00772f036a80e8875207e2a11bd8ef3d2d615.tar.gz | |
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.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
