Runtime print helpers should get a &'static str
This commit is contained in:
parent
c39d43fbd3
commit
f7421cf252
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
if self.config.is_debugging() {
|
||||||
println!("{}", string);
|
println!("{}", string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn print(&self, string : &String) {
|
pub fn print(&self, string : &'static str) {
|
||||||
if self.config.is_verbose() || self.config.is_debugging() {
|
if self.config.is_verbose() || self.config.is_debugging() {
|
||||||
println!("{}", string);
|
println!("{}", string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn trace(string : &String) {
|
pub fn trace(string : &'static str) {
|
||||||
// writeln!(&mut stderr, "{}", string);
|
// writeln!(&mut stderr, "{}", string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue