Skip to content

Commit

Permalink
Ignore clippy::needless_lifetimes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 11, 2020
1 parent c2de031 commit 1cb7d0b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/enum-default-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// ```

#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)]
#![allow(clippy::just_underscores_and_digits)]
#![allow(clippy::needless_lifetimes, clippy::just_underscores_and_digits)]

use pin_project::pin_project;

Expand Down
1 change: 1 addition & 0 deletions examples/not_unpin-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// ```

#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)]
#![allow(clippy::needless_lifetimes)]

use pin_project::pin_project;

Expand Down
1 change: 1 addition & 0 deletions examples/pinned_drop-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// ```

#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)]
#![allow(clippy::needless_lifetimes)]

use pin_project::{pin_project, pinned_drop};
use std::pin::Pin;
Expand Down
1 change: 1 addition & 0 deletions examples/project_replace-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// ```

#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)]
#![allow(clippy::needless_lifetimes)]

use pin_project::pin_project;

Expand Down
1 change: 1 addition & 0 deletions examples/struct-default-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// ```

#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)]
#![allow(clippy::needless_lifetimes)]

use pin_project::pin_project;

Expand Down
1 change: 1 addition & 0 deletions examples/unsafe_unpin-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// ```

#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)]
#![allow(clippy::needless_lifetimes)]

use pin_project::{pin_project, UnsafeUnpin};

Expand Down
1 change: 1 addition & 0 deletions tests/pin_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ fn private_type_in_public_type() {
struct PrivateStruct<T>(T);
}

#[allow(clippy::needless_lifetimes)]
#[test]
fn lifetime_project() {
#[pin_project(project_replace)]
Expand Down

0 comments on commit 1cb7d0b

Please sign in to comment.