Removed unnecessary transmute
auto merge of #14276 : aochagavia/rust/pr, r=alexcrichton