Skip to content

Commit

Permalink
Remove collect
Browse files Browse the repository at this point in the history
  • Loading branch information
vacuus committed Jan 15, 2022
1 parent ec4bcaa commit 47de5b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/core.rs
Expand Up @@ -492,9 +492,9 @@ impl<'tcx> Visitor<'tcx> for EmitIgnoredResolutionErrors<'tcx> {
"could not resolve path `{}`",
path.segments
.iter()
.map(|segment| segment.ident.as_str().to_string())
.collect::<Vec<_>>()
.join("::")
.map(|segment| segment.ident.as_str())
.intersperse("::")
.collect::<String>()
);
let mut err = rustc_errors::struct_span_err!(
self.tcx.sess,
Expand Down

0 comments on commit 47de5b4

Please sign in to comment.