We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b3183 commit b8fb6e1Copy full SHA for b8fb6e1
1 file changed
src/librustdoc/clean/types.rs
@@ -2175,8 +2175,8 @@ impl Path {
2175
pub(crate) fn whole_name(&self) -> String {
2176
self.segments
2177
.iter()
2178
- .map(|s| if s.name == kw::PathRoot { String::new() } else { s.name.to_string() })
2179
- .intersperse("::".into())
+ .map(|s| if s.name == kw::PathRoot { "" } else { s.name.as_str() })
+ .intersperse("::")
2180
.collect()
2181
}
2182
0 commit comments