From cfbdf62344cad34f0d6b7ffcc9c0ed90e543e84a Mon Sep 17 00:00:00 2001 From: Swarnim Arun Date: Mon, 13 Mar 2023 17:28:37 +0530 Subject: [PATCH] fix: as suggested change `remove_slice` to `as_slice` --- crates/hir/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 866641202cc..bc6cd41e0de 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -3224,7 +3224,7 @@ pub fn remove_ref(&self) -> Option { } } - pub fn remove_slice(&self) -> Option { + pub fn as_slice(&self) -> Option { match &self.ty.kind(Interner) { TyKind::Slice(ty) => Some(self.derived(ty.clone())), _ => None,