From 39ca7db7c8bbc5b73ae5d51aa5146003f400876e Mon Sep 17 00:00:00 2001 From: topecongiro Date: Thu, 26 Oct 2017 16:57:45 +0900 Subject: [PATCH] Remove unnecessary String::from() --- src/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items.rs b/src/items.rs index 042aa81f3ce4..13450ea0f45e 100644 --- a/src/items.rs +++ b/src/items.rs @@ -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() }, };