assembler: purge unwrap and use more AssembleErrors

This commit is contained in:
2025-06-23 19:39:49 +01:00
parent f432fe7665
commit ed479ac146
12 changed files with 812 additions and 461 deletions
+4 -2
View File
@@ -4,8 +4,10 @@ use std::io::Write;
pub fn input(prompt: &str) -> String {
print!("{prompt}\n > ");
std::io::stdout().flush().unwrap();
std::io::stdout().flush().expect("Failed to flush stdout");
let mut input = String::new();
std::io::stdin().read_line(&mut input).unwrap();
std::io::stdin()
.read_line(&mut input)
.expect("Failed to read line from stdin");
input.trim().to_string()
}