Skip to content

Commit c4a3ccd

Browse files
committed
fix lint errors
1 parent 2b0f9ab commit c4a3ccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/only_used_in_recursion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ impl<'tcx> LateLintPass<'tcx> for OnlyUsedInRecursion {
204204
pub fn is_primitive(ty: Ty<'_>) -> bool {
205205
match ty.kind() {
206206
ty::Bool | ty::Char | ty::Int(_) | ty::Uint(_) | ty::Float(_) | ty::Str => true,
207-
ty::Ref(_, t, _) => is_primitive(t),
207+
ty::Ref(_, t, _) => is_primitive(*t),
208208
_ => false,
209209
}
210210
}
211211

212212
pub fn is_array(ty: Ty<'_>) -> bool {
213213
match ty.kind() {
214214
ty::Array(..) | ty::Slice(..) => true,
215-
ty::Ref(_, t, _) => is_array(t),
215+
ty::Ref(_, t, _) => is_array(*t),
216216
_ => false,
217217
}
218218
}

0 commit comments

Comments
 (0)