diff options
| author | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-06-05 09:15:19 +0200 |
|---|---|---|
| committer | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-06-06 09:56:59 +0200 |
| commit | 501b904bb74e3be798a348088d532350d482984f (patch) | |
| tree | 3488f6a4439b7beb39149c0015a06e9270bee532 /src/librustdoc/html/markdown.rs | |
| parent | 073c8f10fc40b07596fd1018a2002db8e6d5222a (diff) | |
| download | rust-501b904bb74e3be798a348088d532350d482984f.tar.gz rust-501b904bb74e3be798a348088d532350d482984f.zip | |
Change to_str().to_string() to just to_str()
Diffstat (limited to 'src/librustdoc/html/markdown.rs')
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 406bdc48af3..e0a8a459a6a 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -208,7 +208,7 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result { // Transform the contents of the header into a hyphenated string let id = (s.as_slice().words().map(|s| { match s.to_ascii_opt() { - Some(s) => s.to_lower().into_str().to_string(), + Some(s) => s.to_lower().into_str(), None => s.to_string() } }).collect::<Vec<String>>().connect("-")).to_string(); |
