Box<String>
RS-W1060Box<String>
is unnecessary.
String
s are already stored on the heap, boxing them simply adds
another level of indirection. Consider using Box<str>
or String
instead.
let temp: Box<String> = Box::new("test".to_string());
let temp: String = "test".to_string();