Lots of improvements.

* Better script names and grammar fix.
* Bump Rust
* Enforce more lints.
* Improve few struct definitions by removing box.
* Many minor implementation improvements.
This commit is contained in:
Janggun Lee
2022-11-21 15:27:04 +09:00
parent cb698a5e43
commit 094cbfdd2c
40 changed files with 446 additions and 498 deletions

View File

@@ -147,12 +147,12 @@ impl WriteLine for (&BlockId, &Block) {
} else {
"".into()
},
instr.write_string()
instr
)?;
}
write_indent(indent, write)?;
writeln!(write, "{}", self.1.exit.write_string())?;
writeln!(write, "{}", self.1.exit)?;
Ok(())
}
@@ -166,7 +166,7 @@ impl WriteString for Instruction {
impl WriteString for Operand {
fn write_string(&self) -> String {
format!("{}:{}", self, self.dtype())
format!("{}", self)
}
}