Remove debug function
This commit is contained in:
parent
a10b59d835
commit
6ddeec4166
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user