remove useless `transmute_immut` function