mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Added new_ret_no_self exception to clippy to pass dogfood tests
This commit is contained in:
parent
348d18ebd8
commit
54506705ce
1 changed files with 1 additions and 0 deletions
|
@ -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()?
|
||||
|
|
Loading…
Add table
Reference in a new issue