We should use references here

This commit is contained in:
Matthias Beyer 2015-10-18 21:15:05 +02:00
parent bd6df27aec
commit 98c782212c
1 changed files with 3 additions and 3 deletions

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