More cleanup

This commit is contained in:
2025-12-09 12:12:28 -07:00
parent c531f673a5
commit a50a45f0b4
2 changed files with 3 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ impl<'a> Parser<'a> {
let (start_line, start_col) = start_token let (start_line, start_col) = start_token
.as_ref() .as_ref()
.map(|t| (t.line, t.span.start)) .map(|t| (t.line, t.span.start))
.unwrap_or((1, 1)); .unwrap_or((0, 0));
let node = parser(self)?; let node = parser(self)?;
@@ -207,7 +207,7 @@ impl<'a> Parser<'a> {
let (start_line, start_col) = first_token let (start_line, start_col) = first_token
.as_ref() .as_ref()
.map(|tok| (tok.line, tok.span.start)) .map(|tok| (tok.line, tok.span.start))
.unwrap_or((1, 1)); .unwrap_or((0, 0));
let mut expressions = Vec::<Spanned<Expression>>::new(); let mut expressions = Vec::<Spanned<Expression>>::new();

View File

@@ -11,7 +11,7 @@ use token::{Token, TokenType};
#[derive(Error, Debug)] #[derive(Error, Debug)]
pub enum Error { pub enum Error {
#[error("IO Error: {0}")] #[error(transparent)]
IOError(#[from()] std::io::Error), IOError(#[from()] std::io::Error),
#[error(transparent)] #[error(transparent)]
LexError(#[from] token::LexError), LexError(#[from] token::LexError),