From: Matt Corallo Date: Mon, 26 Apr 2021 15:42:09 +0000 (+0000) Subject: Drop redundant deref in vec iteration X-Git-Tag: v0.0.98~11^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e6435447c717a788b4dc9f12e36ee82f39326ceb;p=ldk-c-bindings Drop redundant deref in vec iteration --- diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index efb12b8..c230770 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -1159,7 +1159,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> { Some(("Vec::new(); for mut item in ", vec![(format!(".drain(..) {{ local_{}.push(", var_name), "item".to_string())], "); }", ContainerPrefixLocation::PerConv)) }, "Slice" => { - Some(("Vec::new(); for item in ", vec![(format!(".iter() {{ local_{}.push(", var_name), "**item".to_string())], "); }", ContainerPrefixLocation::PerConv)) + Some(("Vec::new(); for item in ", vec![(format!(".iter() {{ local_{}.push(", var_name), "*item".to_string())], "); }", ContainerPrefixLocation::PerConv)) }, "Option" => { if let Some(syn::Type::Path(p)) = single_contained {