misc: fixed some shit thanks to Clippy, have fun with the merge conflicts lmao
This commit is contained in:
@@ -7,7 +7,7 @@ use crate::{lexer::Token, parser::TokenType};
|
||||
pub mod lexer;
|
||||
pub mod parser;
|
||||
|
||||
pub fn assemble(src: &str) -> Vec<Instruction> {
|
||||
pub fn assemble(_src: &str) -> Vec<Instruction> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ impl fmt::Display for AssembleError {
|
||||
match self {
|
||||
AssembleError::Generic => write!(f, "Generic error"),
|
||||
AssembleError::UnexpectedToken(tok, expected) => {
|
||||
write!(f, "Unexpected token {:?}, expected {:?}", tok, expected)
|
||||
write!(f, "Unexpected token {tok:?}, expected {expected:?}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user