aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-10-19 22:48:33 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commitf1c94dadfa73c755566a491c7c2d15823101408b (patch)
tree4388b8c964bd9a73b1cbbc35bcca0bf1b719ce3e /src/display.rs
parent81c6cdd1b508402edc16ab2ae88379d951c8cfa6 (diff)
first brush of Many operand use, for 3-arg imul
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display.rs b/src/display.rs
index 7d8c1b5..2a1dcc2 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -176,6 +176,12 @@ impl <T: std::fmt::Write> Colorize<T> for Operand {
},
&Operand::Nothing => { Ok(()) },
// &Operand::Many(_) => { panic!("many not covered"); }
+ &Operand::Many(ref ops) => {
+ for op in ops.iter() {
+ write!(f, ", {}", op)?;
+ }
+ Ok(())
+ }
}
}
}