We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
collect()
1 parent a83112f commit eec21d2Copy full SHA for eec21d2
1 file changed
src/librustdoc/clean/types.rs
@@ -1955,7 +1955,7 @@ impl Path {
1955
}
1956
1957
crate fn whole_name(&self) -> String {
1958
- self.segments.iter().map(|s| s.name.to_string()).collect::<Vec<_>>().join("::")
+ self.segments.iter().map(|s| s.name.to_string()).intersperse("::".into()).collect()
1959
1960
1961
/// Checks if this is a `T::Name` path for an associated type.
0 commit comments