]> git.lizzy.rs Git - rust.git/commitdiff
Added new_ret_no_self exception to clippy to pass dogfood tests
authorJosh Mcguigan <joshmcg88@gmail.com>
Tue, 9 Oct 2018 02:35:37 +0000 (19:35 -0700)
committerJosh Mcguigan <joshmcg88@gmail.com>
Sat, 13 Oct 2018 13:25:10 +0000 (06:25 -0700)
clippy_lints/src/types.rs

index 035ca2b04964b7d8ee4c16841999ee9c16e2e346..59c55168232915948504750e1eec478aaa1b3f36 100644 (file)
@@ -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()?