Skip to content

Commit 7d16405

Browse files
committed
use &mut
1 parent 090ad5d commit 7d16405

File tree

1 file changed

+1
-1
lines changed
  • src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic

1 file changed

+1
-1
lines changed

src/stable/build/commands/build/wasm_binary/rust/stable_canister_template/src/ic/rand_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn get_function(ctx: Ctx) -> Result<Function> {
1212

1313
let mut bytes = vec![0; byte_length];
1414

15-
rng.fill_bytes(bytes.as_mut_slice());
15+
rng.fill_bytes(&mut bytes);
1616

1717
TypedArray::<u8>::new(ctx.clone(), bytes)
1818
})

0 commit comments

Comments
 (0)