Skip to content

Commit

Permalink
Ignore more clippy lints at workspace level
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 9, 2024
1 parent 05c247e commit 3a2ccfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ trailing_empty_array = "warn"
transmute_undefined_repr = "warn"
undocumented_unsafe_blocks = "warn"
# Suppress buggy or noisy clippy lints
bool_assert_comparison = { level = "allow", priority = 1 }
borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286
doc_markdown = { level = "allow", priority = 1 }
float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725
Expand All @@ -79,6 +80,7 @@ similar_names = { level = "allow", priority = 1 }
single_match = { level = "allow", priority = 1 }
single_match_else = { level = "allow", priority = 1 }
struct_excessive_bools = { level = "allow", priority = 1 }
struct_field_names = { level = "allow", priority = 1 }
too_many_arguments = { level = "allow", priority = 1 }
too_many_lines = { level = "allow", priority = 1 }
type_complexity = { level = "allow", priority = 1 }
2 changes: 1 addition & 1 deletion pin-project-internal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)
))]
#![forbid(unsafe_code)]
#![allow(clippy::needless_doctest_main, clippy::struct_field_names)]
#![allow(clippy::needless_doctest_main)]

#[macro_use]
mod error;
Expand Down
6 changes: 1 addition & 5 deletions tests/pinned_drop.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

#![allow(clippy::match_same_arms)]

use std::pin::Pin;

use pin_project::{pin_project, pinned_drop};
Expand Down Expand Up @@ -115,9 +113,7 @@ fn self_ty() {

// pat
match *self {
Self::Struct { f: () } => {}
Self::Tuple(()) => {}
Self::Unit => {}
Self::Struct { f: () } | Self::Tuple(()) | Self::Unit => {}
}
if let Self::Struct { f: () } = *self {}
if let Self::Tuple(()) = *self {}
Expand Down

0 comments on commit 3a2ccfe

Please sign in to comment.