From 98c782212c32140bcf54d5f0db4f54fbe425d215 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 18 Oct 2015 21:15:05 +0200 Subject: [PATCH] We should use references here --- src/runtime.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime.rs b/src/runtime.rs index 84ba0f2d..23ddb619 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -15,19 +15,19 @@ impl Runtime { } } - pub fn debug(&self, string : String) { + pub fn debug(&self, string : &String) { if self.config.is_debugging() { println!("{}", string); } } - pub fn print(&self, string : String) { + pub fn print(&self, string : &String) { if self.config.is_verbose() || self.config.is_debugging() { println!("{}", string); } } - pub fn trace(string : String) { + pub fn trace(string : &String) { // writeln!(&mut stderr, "{}", string); }