From 6e216ffd63b8ec221fda11eba08cf061eba88d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Niederb=C3=BChl?= Date: Sun, 12 Jan 2020 01:43:33 +0100 Subject: [PATCH] Remove ignoring of new_ret_no_self in clippy target After the changes in the `#[pyclass]` system in #683, `new` can return self and there is no reason anymore to ignore this lint. --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dd37438f..f8c821db 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ .PHONY: test test_py3 publish clippy lint fmt -# Constants used in clippy target +# Constant used in clippy target CLIPPY_LINTS_TO_DENY := warnings -CLIPPY_LINTS_TO_ALLOW := clippy::new_ret_no_self test: cargo test @@ -21,8 +20,7 @@ fmt: clippy: @touch src/lib.rs # Touching file to ensure that cargo clippy will re-check the project cargo clippy --all-features --all-targets -- \ - $(addprefix -D ,${CLIPPY_LINTS_TO_DENY}) \ - $(addprefix -A ,${CLIPPY_LINTS_TO_ALLOW}) + $(addprefix -D ,${CLIPPY_LINTS_TO_DENY}) lint: fmt clippy @true