Replace Vec::from_slice([...]) to vec!(...) macro

to improve readability and effecienty. Thanks to @Ogeon.