diff options
author | Shotaro Yamada <[email protected]> | 2019-10-14 05:06:05 +0100 |
---|---|---|
committer | Shotaro Yamada <[email protected]> | 2019-10-14 06:25:05 +0100 |
commit | 965ca0d271bdb467ec1f7fe309094aff8cac6aaa (patch) | |
tree | 22e4cde04bf900787701b1b047ea01f1ab74d5a0 /crates/ra_hir/src/ty/traits | |
parent | f8d4cdc170bead42db3ffa647318ecf2bd6430e7 (diff) |
`.collect()` directly into `Arc<[T]>`
Diffstat (limited to 'crates/ra_hir/src/ty/traits')
-rw-r--r-- | crates/ra_hir/src/ty/traits/chalk.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/traits/chalk.rs b/crates/ra_hir/src/ty/traits/chalk.rs index 9168de709..00aaf65d9 100644 --- a/crates/ra_hir/src/ty/traits/chalk.rs +++ b/crates/ra_hir/src/ty/traits/chalk.rs | |||
@@ -126,8 +126,7 @@ impl ToChalk for Substs { | |||
126 | chalk_ir::Parameter(chalk_ir::ParameterKind::Ty(ty)) => from_chalk(db, ty), | 126 | chalk_ir::Parameter(chalk_ir::ParameterKind::Ty(ty)) => from_chalk(db, ty), |
127 | chalk_ir::Parameter(chalk_ir::ParameterKind::Lifetime(_)) => unimplemented!(), | 127 | chalk_ir::Parameter(chalk_ir::ParameterKind::Lifetime(_)) => unimplemented!(), |
128 | }) | 128 | }) |
129 | .collect::<Vec<_>>() | 129 | .collect(); |
130 | .into(); | ||
131 | Substs(tys) | 130 | Substs(tys) |
132 | } | 131 | } |
133 | } | 132 | } |