mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
lexer: make 'take_error' internal
This commit is contained in:
parent
eec6a3a0d1
commit
05a40ed43d
@ -75,7 +75,7 @@ impl<'s> Lexer<'s> {
|
||||
}
|
||||
|
||||
/// Take out the last error, if any.
|
||||
pub fn take_error(&mut self) -> Option<SyntaxError> {
|
||||
fn take_error(&mut self) -> Option<SyntaxError> {
|
||||
self.error.take()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user