Skip to content

Commit 5450670

Browse files
committed
Added new_ret_no_self exception to clippy to pass dogfood tests
1 parent 348d18e commit 5450670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,6 +1920,7 @@ enum ImplicitHasherType<'tcx> {
19201920

19211921
impl<'tcx> ImplicitHasherType<'tcx> {
19221922
/// Checks that `ty` is a target type without a BuildHasher.
1923+
#[allow(clippy::new_ret_no_self)]
19231924
fn new<'a>(cx: &LateContext<'a, 'tcx>, hir_ty: &hir::Ty) -> Option<Self> {
19241925
if let TyKind::Path(QPath::Resolved(None, ref path)) = hir_ty.node {
19251926
let params: Vec<_> = path.segments.last().as_ref()?.args.as_ref()?

0 commit comments

Comments
 (0)