fix: as suggested change remove_slice to as_slice

This commit is contained in:
Swarnim Arun 2023-03-13 17:28:37 +05:30 committed by GitHub
parent 34e3ea8cc8
commit cfbdf62344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3224,7 +3224,7 @@ pub fn remove_ref(&self) -> Option<Type> {
}
}
pub fn remove_slice(&self) -> Option<Type> {
pub fn as_slice(&self) -> Option<Type> {
match &self.ty.kind(Interner) {
TyKind::Slice(ty) => Some(self.derived(ty.clone())),
_ => None,