Remove debug function

This commit is contained in:
jonathandturner 2016-03-02 14:51:51 -05:00
parent a10b59d835
commit 6ddeec4166

View File

@ -27,16 +27,10 @@ fn showit<T: Display>(x: &mut T) -> () {
println!("{}", x) println!("{}", x)
} }
fn greet() {
println!("hello!");
}
fn main() { fn main() {
for fname in env::args().skip(1) { for fname in env::args().skip(1) {
let mut engine = Engine::new(); let mut engine = Engine::new();
&(greet as fn()->()).register(&mut engine, "greet");
&(showit as fn(x: &mut i32)->()).register(&mut engine, "print"); &(showit as fn(x: &mut i32)->()).register(&mut engine, "print");
&(showit as fn(x: &mut i64)->()).register(&mut engine, "print"); &(showit as fn(x: &mut i64)->()).register(&mut engine, "print");
&(showit as fn(x: &mut u32)->()).register(&mut engine, "print"); &(showit as fn(x: &mut u32)->()).register(&mut engine, "print");