Replace usage of String::from_str with String:from

This commit is contained in:
Simon Sapin
2015-06-08 16:55:35 +02:00
parent 2ff42435c2
commit c160192f5f
29 changed files with 105 additions and 106 deletions

View File

@@ -145,7 +145,7 @@ impl TocBuilder {
(0, &self.top_level)
}
Some(entry) => {
sec_number = String::from_str(&entry.sec_number);
sec_number = entry.sec_number.clone();
sec_number.push_str(".");
(entry.level, &entry.children)
}