correct formatting on heap_print

This commit is contained in:
Mark Thom
2018-01-15 20:28:25 -07:00
parent f265546203
commit bdb7da3ccf

View File

@@ -56,14 +56,13 @@ pub struct PrinterOutputter {
contents: String
}
impl HeapCellValueOutputter for PrinterOutputter {
type Output = String;
impl HeapCellValueOutputter for PrinterOutputter {
fn new() -> Self {
PrinterOutputter { contents: String::new() }
}
type Output = String;
fn append(&mut self, contents: &str) {
self.contents += contents;
}