.join(..)
with empty string RS-W1203Using slice::join
with an empty string literal is equivalent to slice::concat
.
The latter is more readable and generally more performant.
Consider using .concat()
over .join("")
.
println!("{}", ["hell", "ope"].join(""));
// "hellope"
println!("{}", ["hell", "ope"].concat());
// "hellope"