mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix: as suggested change remove_slice
to as_slice
This commit is contained in:
parent
34e3ea8cc8
commit
cfbdf62344
1 changed files with 1 additions and 1 deletions
|
@ -3224,7 +3224,7 @@ impl Type {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn remove_slice(&self) -> Option<Type> {
|
pub fn as_slice(&self) -> Option<Type> {
|
||||||
match &self.ty.kind(Interner) {
|
match &self.ty.kind(Interner) {
|
||||||
TyKind::Slice(ty) => Some(self.derived(ty.clone())),
|
TyKind::Slice(ty) => Some(self.derived(ty.clone())),
|
||||||
_ => None,
|
_ => None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue