Change to_str().to_string() to just to_str()

This commit is contained in:
Adolfo Ochagavía
2014-06-05 09:15:19 +02:00
parent 073c8f10fc
commit 501b904bb7
31 changed files with 54 additions and 51 deletions

View File

@@ -401,7 +401,7 @@ impl fmt::Show for clean::Type {
} else {
let mut m = decl.bounds
.iter()
.map(|s| s.to_str().to_string());
.map(|s| s.to_str());
format!(
": {}",
m.collect::<Vec<String>>().connect(" + "))