diff --git a/src/main.rs b/src/main.rs index e645ac75..559d42d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,16 +27,10 @@ fn showit(x: &mut T) -> () { println!("{}", x) } -fn greet() { - println!("hello!"); -} - fn main() { for fname in env::args().skip(1) { 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 i64)->()).register(&mut engine, "print"); &(showit as fn(x: &mut u32)->()).register(&mut engine, "print");