Adding Uint8ArrayMut, disable mutability for all other than this one

This commit is contained in:
Benjamin Kampmann
2018-09-06 16:16:24 +02:00
parent 3076e40b21
commit 6efbf5076c
2 changed files with 16 additions and 13 deletions

View File

@ -240,7 +240,7 @@ impl<'src> FirstPassRecord<'src> {
..
} = &kind {
let mut res = Vec::with_capacity(idl_arguments.size_hint().0 + 1);
res.push(simple_fn_arg(raw_ident("self_"), shared_ref(ty.clone(), true)));
res.push(simple_fn_arg(raw_ident("self_"), shared_ref(ty.clone(), false)));
res
} else {
Vec::with_capacity(idl_arguments.size_hint().0)