language changes: somehow, &mut [u8] and &[u8] cannot be directly compared.