From: Mark Thom Date: Tue, 16 Jan 2018 03:28:25 +0000 (-0700) Subject: correct formatting on heap_print X-Git-Tag: v0.8.110~624 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=bdb7da3ccfbf7fd3e1fe3205cf62ecbe04e28a0c;p=scryer-prolog.git correct formatting on heap_print --- 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; }