aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty.rs
diff options
context:
space:
mode:
authorShotaro Yamada <[email protected]>2019-10-14 05:06:05 +0100
committerShotaro Yamada <[email protected]>2019-10-14 06:25:05 +0100
commit965ca0d271bdb467ec1f7fe309094aff8cac6aaa (patch)
tree22e4cde04bf900787701b1b047ea01f1ab74d5a0 /crates/ra_hir/src/ty.rs
parentf8d4cdc170bead42db3ffa647318ecf2bd6430e7 (diff)
`.collect()` directly into `Arc<[T]>`
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r--crates/ra_hir/src/ty.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index fc4909d11..bf7445ea3 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -329,8 +329,7 @@ impl Substs {
329 .params_including_parent() 329 .params_including_parent()
330 .into_iter() 330 .into_iter()
331 .map(|p| Ty::Param { idx: p.idx, name: p.name.clone() }) 331 .map(|p| Ty::Param { idx: p.idx, name: p.name.clone() })
332 .collect::<Vec<_>>() 332 .collect(),
333 .into(),
334 ) 333 )
335 } 334 }
336 335
@@ -341,8 +340,7 @@ impl Substs {
341 .params_including_parent() 340 .params_including_parent()
342 .into_iter() 341 .into_iter()
343 .map(|p| Ty::Bound(p.idx)) 342 .map(|p| Ty::Bound(p.idx))
344 .collect::<Vec<_>>() 343 .collect(),
345 .into(),
346 ) 344 )
347 } 345 }
348 346