We should use references here
This commit is contained in:
parent
bd6df27aec
commit
98c782212c
1 changed files with 3 additions and 3 deletions
|
@ -15,19 +15,19 @@ impl Runtime {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn debug(&self, string : String) {
|
pub fn debug(&self, string : &String) {
|
||||||
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 : &String) {
|
||||||
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 : &String) {
|
||||||
// writeln!(&mut stderr, "{}", string);
|
// writeln!(&mut stderr, "{}", string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue