T
and T
RS-W1117Transmutes to the original type of the object is redundant. Such code creates the illusion of complexity and reduces readability.
fn foo(x: u8) -> u8 {
// where the result type is the same as `x`'s
core::intrinsics::transmute(x)
}
fn foo(x: u8) -> u8 {
x
}