From bdb7da3ccfbf7fd3e1fe3205cf62ecbe04e28a0c Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Mon, 15 Jan 2018 20:28:25 -0700 Subject: [PATCH] correct formatting on heap_print --- src/prolog/heap_print.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/prolog/heap_print.rs b/src/prolog/heap_print.rs index e7a6551a..9488d42a 100644 --- a/src/prolog/heap_print.rs +++ b/src/prolog/heap_print.rs @@ -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; } -- 2.54.0