diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-26 11:50:52 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-10-26 11:50:52 +0200 |
| commit | cdee8396964a2b6e5a7b9133644dbd406e1fe6b5 (patch) | |
| tree | 1d838da8335153056455a9484e372336d2891433 | |
| parent | 1b61b1b44581c449ae40505d181b00593f089d40 (diff) | |
| download | rust-cdee8396964a2b6e5a7b9133644dbd406e1fe6b5.tar.gz rust-cdee8396964a2b6e5a7b9133644dbd406e1fe6b5.zip | |
Remove unneeded into_iter
| -rw-r--r-- | src/librustdoc/json/conversions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs index 6fa0425c495..443ac282134 100644 --- a/src/librustdoc/json/conversions.rs +++ b/src/librustdoc/json/conversions.rs @@ -412,7 +412,7 @@ impl FromWithTcx<clean::Type> for Type { .map(|t| { clean::GenericBound::TraitBound(t, rustc_hir::TraitBoundModifier::None) }) - .chain(lt.into_iter().map(clean::GenericBound::Outlives)) + .chain(lt.map(clean::GenericBound::Outlives)) .map(|bound| bound.into_tcx(tcx)) .collect(), } |
