Runtime print helpers should get a &'static str

This commit is contained in:
Matthias Beyer 2015-10-25 20:10:24 +01:00
parent c39d43fbd3
commit f7421cf252

View file

@ -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);
}