diff options
| author | Josh Mcguigan <joshmcg88@gmail.com> | 2018-10-08 19:35:37 -0700 |
|---|---|---|
| committer | Josh Mcguigan <joshmcg88@gmail.com> | 2018-10-13 06:25:10 -0700 |
| commit | 54506705cec65652c0607cfe8af7284546e9b576 (patch) | |
| tree | ed3197ebb0dc7e4c5a962cef07f35044b2f37846 | |
| parent | 348d18ebd8ee5182d4705aba8341fb469f936ff5 (diff) | |
| download | rust-54506705cec65652c0607cfe8af7284546e9b576.tar.gz rust-54506705cec65652c0607cfe8af7284546e9b576.zip | |
Added new_ret_no_self exception to clippy to pass dogfood tests
| -rw-r--r-- | clippy_lints/src/types.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index 035ca2b0496..59c55168232 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -1920,6 +1920,7 @@ enum ImplicitHasherType<'tcx> { impl<'tcx> ImplicitHasherType<'tcx> { /// Checks that `ty` is a target type without a BuildHasher. + #[allow(clippy::new_ret_no_self)] fn new<'a>(cx: &LateContext<'a, 'tcx>, hir_ty: &hir::Ty) -> Option<Self> { if let TyKind::Path(QPath::Resolved(None, ref path)) = hir_ty.node { let params: Vec<_> = path.segments.last().as_ref()?.args.as_ref()? |
