X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=c-bindings-gen%2Fsrc%2Fmain.rs;h=fe3746c041bcd247c7c5b9de96140af462b4a250;hp=918a05a935e0c117d93f3dddfcb92365a178a78a;hb=21cd454337357652dc354c012a6a6ddd2b711aa5;hpb=9069bc0ea8b7fdaa9ee276d78fb0610157edbcf2 diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index 918a05a..fe3746c 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -388,7 +388,7 @@ fn writeln_trait<'a, 'b, W: std::io::Write>(w: &mut W, t: &'a syn::ItemTrait, ty ident.mutability.is_some() || ident.subpat.is_some() { unimplemented!(); } - write!(w, ", {}{}: ", if $type_resolver.skip_arg(&*arg.ty, Some(&meth_gen_types)) { "_" } else { "" }, ident.ident).unwrap(); + write!(w, ", mut {}{}: ", if $type_resolver.skip_arg(&*arg.ty, Some(&meth_gen_types)) { "_" } else { "" }, ident.ident).unwrap(); } _ => unimplemented!(), }