mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
formatting
This commit is contained in:
parent
21a53ea044
commit
d34f5050cb
1 changed files with 9 additions and 5 deletions
|
@ -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!(
|
||||||
"Result"
|
"{:?} {}",
|
||||||
} else {
|
self.opcode,
|
||||||
"NoResult"
|
if self.has_result {
|
||||||
}))
|
"Result"
|
||||||
|
} else {
|
||||||
|
"NoResult"
|
||||||
|
}
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue