From 9787bddac577a6aa24388fb91286474a7a8cf0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 25 Mar 2021 21:03:20 +0200 Subject: Use arrayvec 0.6 --- crates/hir/Cargo.toml | 2 +- crates/hir/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir') 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 log = "0.4.8" rustc-hash = "1.1.0" either = "1.5.3" -arrayvec = "0.5.1" +arrayvec = "0.6" itertools = "0.10.0" smallvec = "1.4.0" 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 { } impl ScopeDef { - pub fn all_items(def: PerNs) -> ArrayVec<[Self; 3]> { + pub fn all_items(def: PerNs) -> ArrayVec { let mut items = ArrayVec::new(); match (def.take_types(), def.take_values()) { -- cgit v1.2.3