From f7421cf2523b52fb453c75b813f015e5bd295314 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 25 Oct 2015 20:10:24 +0100 Subject: [PATCH] Runtime print helpers should get a &'static str --- src/runtime.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime.rs b/src/runtime.rs index 04a1d521..7c8c2021 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -15,19 +15,19 @@ impl<'a> Runtime<'a> { } } - pub fn debug(&self, string : &String) { + pub fn debug(&self, string : &'static str) { if self.config.is_debugging() { println!("{}", string); } } - pub fn print(&self, string : &String) { + pub fn print(&self, string : &'static str) { if self.config.is_verbose() || self.config.is_debugging() { println!("{}", string); } } - pub fn trace(string : &String) { + pub fn trace(string : &'static str) { // writeln!(&mut stderr, "{}", string); }