diff options
author | Laurențiu Nicola <[email protected]> | 2021-03-25 19:03:20 +0000 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-03-25 19:03:20 +0000 |
commit | 9787bddac577a6aa24388fb91286474a7a8cf0bc (patch) | |
tree | 2549ec113b23c88ac95fe4eee2e59f8e95297465 /crates/hir | |
parent | 59fdd7c84c5fdc16573f3cca4081d6735eaa9208 (diff) |
Use arrayvec 0.6
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/hir/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/Cargo.toml b/crates/hir/Cargo.toml index 55e9c3f0c..2ef5bcbc9 100644 --- a/crates/hir/Cargo.toml +++ b/crates/hir/Cargo.toml | |||
@@ -13,7 +13,7 @@ doctest = false | |||
13 | log = "0.4.8" | 13 | log = "0.4.8" |
14 | rustc-hash = "1.1.0" | 14 | rustc-hash = "1.1.0" |
15 | either = "1.5.3" | 15 | either = "1.5.3" |
16 | arrayvec = "0.5.1" | 16 | arrayvec = "0.6" |
17 | itertools = "0.10.0" | 17 | itertools = "0.10.0" |
18 | smallvec = "1.4.0" | 18 | smallvec = "1.4.0" |
19 | 19 | ||
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 6fa676c4d..05a60e158 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs | |||
@@ -2238,7 +2238,7 @@ pub enum ScopeDef { | |||
2238 | } | 2238 | } |
2239 | 2239 | ||
2240 | impl ScopeDef { | 2240 | impl ScopeDef { |
2241 | pub fn all_items(def: PerNs) -> ArrayVec<[Self; 3]> { | 2241 | pub fn all_items(def: PerNs) -> ArrayVec<Self, 3> { |
2242 | let mut items = ArrayVec::new(); | 2242 | let mut items = ArrayVec::new(); |
2243 | 2243 | ||
2244 | match (def.take_types(), def.take_values()) { | 2244 | match (def.take_types(), def.take_values()) { |