0

I wrote these lines of rust yesterday. It turns 27 bits from a 32 bit integer into a 3x9 byte array, but my gut feeling is this should be done without having a mutable variable ans.
pub fn u32_to_preformated_vector(image:u32) ->[[u8;9];3] {
let mut ans:[[u8; 9]; 3]= [[0,0,0,0,0,0,0,0,0], [0...