Skip to content

Commit

Permalink
Add inline(never) to Parser::error
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev authored and zonyitoo committed Mar 11, 2024
1 parent 599aeaf commit 43eeb8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,8 @@ impl<'a> Parser<'a> {
}
}

#[cold]
#[inline(never)]
fn error<U, M: Into<Cow<'static, str>>>(&self, msg: M) -> Result<U, ParseError> {
Err(ParseError {
line: self.line + 1,
Expand Down

0 comments on commit 43eeb8b

Please sign in to comment.