]> Repositorios git - scryer-prolog.git/commitdiff
correct formatting on heap_print
authorMark Thom <[email protected]>
Tue, 16 Jan 2018 03:28:25 +0000 (20:28 -0700)
committerMark Thom <[email protected]>
Tue, 16 Jan 2018 03:28:25 +0000 (20:28 -0700)
src/prolog/heap_print.rs

index e7a6551a184917a91ba4348159866e66743f4e93..9488d42a97a435b8a31a7701336d138b8464b3c4 100644 (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;
     }