Remove unnecessary String::from()

This commit is contained in:
topecongiro 2017-10-26 16:57:45 +09:00
parent d66161c6a3
commit 39ca7db7c8

View file

@ -546,7 +546,7 @@ impl<'a> FmtVisitor<'a> {
// 1 = ','
rewrite_assign_rhs(&context, lhs, expr, shape.sub_width(1)?)?
} else {
String::from(field.node.name.to_string())
field.node.name.to_string()
},
};