mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Fix formatting
This commit is contained in:
parent
a2abf9c3d2
commit
f121d6f599
1 changed files with 9 additions and 3 deletions
|
@ -63,8 +63,11 @@ 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 {
|
||||||
let result = if self.has_result { "Result" } else { "NoResult" };
|
f.write_fmt(format_args!("{:?} {}", self.opcode, if self.has_result {
|
||||||
f.write_fmt(format_args!("{:?} {}", self.opcode, result))
|
"Result"
|
||||||
|
} else {
|
||||||
|
"NoResult"
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -308,7 +311,10 @@ impl<'a> CodeBuilder<'a> {
|
||||||
self.add_insertion(pushed_at, SETLOCAL, next_local_id.0);
|
self.add_insertion(pushed_at, SETLOCAL, next_local_id.0);
|
||||||
} else {
|
} else {
|
||||||
if ENABLE_DEBUG_LOG {
|
if ENABLE_DEBUG_LOG {
|
||||||
println!("{:?} has been popped implicitly. Leaving it on the stack.", symbol);
|
println!(
|
||||||
|
"{:?} has been popped implicitly. Leaving it on the stack.",
|
||||||
|
symbol
|
||||||
|
);
|
||||||
}
|
}
|
||||||
self.add_insertion(pushed_at, TEELOCAL, next_local_id.0);
|
self.add_insertion(pushed_at, TEELOCAL, next_local_id.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue