]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/collect.rs
Change some instances of .connect() to .join()
[rust.git] / src / librustc_typeck / collect.rs
index e170808ad07d679fc7da428fc279ed424b68bb00..5d2e3533efccf0f2c2bd8e97543663eca86f1eb6 100644 (file)
@@ -1536,7 +1536,7 @@ fn convert_typed_item<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
                                      d => format!("{:?}", d),
                                  })
                                  .collect::<Vec<String>>()
-                                 .connect(",");
+                                 .join(",");
 
         tcx.sess.span_err(it.span, &object_lifetime_default_reprs);
     }