mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
[bindings] Ensure owned objects in Vec conversion are marked mut
This commit is contained in:
parent
2f06b53abf
commit
1a32e23050
1 changed files with 1 additions and 1 deletions
|
@ -963,7 +963,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
|
||||||
").into() }"))
|
").into() }"))
|
||||||
},
|
},
|
||||||
"Vec" if !is_ref => {
|
"Vec" if !is_ref => {
|
||||||
Some(("Vec::new(); for item in ", vec![(format!(".drain(..) {{ local_{}.push(", var_name), "item".to_string())], "); }"))
|
Some(("Vec::new(); for mut item in ", vec![(format!(".drain(..) {{ local_{}.push(", var_name), "item".to_string())], "); }"))
|
||||||
},
|
},
|
||||||
"Slice" => {
|
"Slice" => {
|
||||||
Some(("Vec::new(); for item in ", vec![(format!(".iter() {{ local_{}.push(", var_name), "**item".to_string())], "); }"))
|
Some(("Vec::new(); for item in ", vec![(format!(".iter() {{ local_{}.push(", var_name), "**item".to_string())], "); }"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue