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 contents: String
} }
impl HeapCellValueOutputter for PrinterOutputter { impl HeapCellValueOutputter for PrinterOutputter {
type Output = String;
fn new() -> Self { fn new() -> Self {
PrinterOutputter { contents: String::new() } PrinterOutputter { contents: String::new() }
} }
type Output = String;
fn append(&mut self, contents: &str) { fn append(&mut self, contents: &str) {
self.contents += contents; self.contents += contents;
} }