formatting

This commit is contained in:
Brian Carroll 2021-11-14 13:35:25 +00:00
parent 21a53ea044
commit d34f5050cb

View file

@ -63,11 +63,15 @@ struct VmBlock<'a> {
impl std::fmt::Debug for VmBlock<'_> { impl std::fmt::Debug for VmBlock<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_fmt(format_args!("{:?} {}", self.opcode, if self.has_result { f.write_fmt(format_args!(
"{:?} {}",
self.opcode,
if self.has_result {
"Result" "Result"
} else { } else {
"NoResult" "NoResult"
})) }
))
} }
} }