diff --git a/src/gen_impl.rs b/src/gen_impl.rs
index e1ffbeb..b41ec20 100644
--- a/src/gen_impl.rs
+++ b/src/gen_impl.rs
@@ -227,7 +227,7 @@ impl Gn {
impl Gn {
/// create a new generator with default stack size
- #[cfg_attr(feature = "cargo-clippy", allow(clippy::new_ret_no_self))]
+ #[allow(clippy::new_ret_no_self)]
#[deprecated(since = "0.6.18", note = "please use `scope` version instead")]
pub fn new<'a, T: Any, F>(f: F) -> Generator<'a, A, T>
where