Fix unused `add_function` result in `#[pyfn]` expansion

This commit is contained in:
Martin Larralde 2018-05-14 16:50:08 +02:00
parent 37eff44308
commit 2607fe9fdc
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ pub fn process_functions_in_module(func: &mut syn::ItemFn) {
let item: syn::ItemFn = parse_quote!{
fn block_wrapper() {
#function_to_python
#module_name.add_function(&#function_wrapper_ident);
#module_name.add_function(&#function_wrapper_ident)?;
}
};
stmts.extend(item.block.stmts.into_iter());