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 committed Mar 7, 2024
1 parent d861fe3 commit af0b4a2
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 @@ -1243,6 +1243,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 af0b4a2

Please sign in to comment.