mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Update clippy_lints/src/types.rs
Co-Authored-By: avborhanian <avborhanian@gmail.com>
This commit is contained in:
parent
6e35b33bc3
commit
a022d47a6b
@ -241,7 +241,7 @@ fn match_type_parameter(cx: &LateContext<'_, '_>, qpath: &QPath, path: &[&str])
|
|||||||
/// The parameter `is_local` distinguishes the context of the type; types from
|
/// The parameter `is_local` distinguishes the context of the type; types from
|
||||||
/// local bindings should only be checked for the `BORROWED_BOX` lint.
|
/// local bindings should only be checked for the `BORROWED_BOX` lint.
|
||||||
#[allow(clippy::too_many_lines)]
|
#[allow(clippy::too_many_lines)]
|
||||||
fn check_ty(cx: &LateContext<'_, '_>, ast_ty: &hir::Ty, is_local: bool) {
|
fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
|
||||||
if in_macro(ast_ty.span) {
|
if in_macro(ast_ty.span) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user