Skip to content

Commit

Permalink
Fix elided lifetime warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Dec 12, 2024
1 parent caa988e commit e849ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit e849ef5

Please sign in to comment.