Remove unnecessary .clone()

This commit is contained in:
Shotaro Yamada
2019-06-08 19:06:58 +09:00
parent 165842ba1f
commit 6a0abd6048
14 changed files with 14 additions and 14 deletions

View File

@@ -1609,7 +1609,7 @@ impl<'tcx> VariantInfo<'tcx> {
// with every variant, make each variant name be just the value
// of the discriminant. The struct name for the variant includes
// the actual variant description.
format!("{}", variant_index.as_usize()).to_string()
format!("{}", variant_index.as_usize())
}
}
}