From 05a40ed43d8471ae9c717e5ed2ec7202fcfde179 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:55:38 -0300 Subject: [PATCH] lexer: make 'take_error' internal --- crates/typst-syntax/src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs index ac6de18cb..b9f28a63d 100644 --- a/crates/typst-syntax/src/lexer.rs +++ b/crates/typst-syntax/src/lexer.rs @@ -75,7 +75,7 @@ impl<'s> Lexer<'s> { } /// Take out the last error, if any. - pub fn take_error(&mut self) -> Option { + fn take_error(&mut self) -> Option { self.error.take() } }