From e849ef50994e7fba21ca37de3c8cafc9b5dc68c1 Mon Sep 17 00:00:00 2001 From: CensoredUsername Date: Thu, 12 Dec 2024 01:57:47 +0100 Subject: [PATCH] Fix elided lifetime warning. --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 3c7b3e8..e4a5868 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -43,7 +43,7 @@ impl<'a> Iterator for ParseState<'a> { } impl<'a> ParseState<'a> { - fn new(buffer: &'a [u8]) -> ParseState { + fn new(buffer: &'a [u8]) -> ParseState<'a> { ParseState {line: 1, column: 1, index: 0, item: None, buffer: buffer} }