Fix compilation failure on latest rust-nightly

&[1u8, 2, 3, 4] seems to be of type &[u8, ..4] instead of type &[u8],
use [1u8, 2, 3, 4].as_slice() instead