1
Fork 0

get clippy to compile again

This commit is contained in:
lcnr 2022-03-18 13:33:40 +01:00
parent 260f17eafd
commit a6153e8218
8 changed files with 27 additions and 63 deletions

View file

@ -1889,10 +1889,7 @@ impl<'tcx> Ty<'tcx> {
#[inline]
pub fn is_slice(self) -> bool {
match self.kind() {
RawPtr(TypeAndMut { ty, .. }) | Ref(_, ty, _) => matches!(ty.kind(), Slice(_) | Str),
_ => false,
}
matches!(self.kind(), Slice(_))
}
#[inline]