We should use references here

This commit is contained in:
Matthias Beyer 2015-10-18 21:15:05 +02:00
parent bd6df27aec
commit 98c782212c

View file

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