]> git.lizzy.rs Git - rust.git/commitdiff
Remove unneeded replace
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 16 Sep 2020 22:20:14 +0000 (00:20 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 2 Oct 2020 17:26:59 +0000 (19:26 +0200)
src/librustdoc/clean/types.rs

index 223fda84871e9725392f8c3c1717a34c0d3db1a9..8fbfb04bac3e4f40daa410c481246f0e294c4fb3 100644 (file)
@@ -695,7 +695,7 @@ pub fn get_doc_aliases(&self) -> FxHashSet<String> {
         self.other_attrs
             .lists(sym::doc)
             .filter(|a| a.has_name(sym::alias))
-            .filter_map(|a| a.value_str().map(|s| s.to_string().replace("\"", "")))
+            .filter_map(|a| a.value_str().map(|s| s.to_string()))
             .filter(|v| !v.is_empty())
             .collect::<FxHashSet<_>>()
     }