cleanup example

This commit is contained in:
Robin Appelman 2019-03-27 22:34:12 +01:00
commit c7e9171267
2 changed files with 2 additions and 5 deletions

View file

@ -1,8 +1,5 @@
use std::intrinsics::transmute;
use ivory::*;
use ivory::{ivory_export, ivory_module};
use ivory::externs::printf;
use ivory::zend::{ExecuteData, PhpVal, ZVal};
#[ivory_export]
fn hello_other(other: String) {

View file

@ -78,7 +78,7 @@ fn export_fn(item: ItemFn) -> TokenStream {
::ivory::externs::printf("unexpected number of arguments");
return;
}
let mut args: Vec<PhpVal> = data.args().collect();
let mut args: Vec<::ivory::zend::PhpVal> = data.args().collect();
#(#arg_cast);*
let result = #body;
}