Skip to content

Commit

Permalink
Ignore more lints at workspace level
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 4, 2024
1 parent f572d16 commit 2251cbc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ members = ["futures-async-stream-macro", "tests/no-std", "tools/codegen"]
[workspace.lints.rust]
improper_ctypes = "warn"
improper_ctypes_definitions = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "warn"
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
Expand All @@ -65,6 +64,7 @@ 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
declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665
doc_markdown = { level = "allow", priority = 1 }
float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725
manual_assert = { level = "allow", priority = 1 }
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ where
))]
#![warn(
// Lints that may help when writing public library.
missing_debug_implementations,
missing_docs,
clippy::alloc_instead_of_core,
clippy::exhaustive_enums,
Expand Down
2 changes: 1 addition & 1 deletion tests/elisions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

#![allow(missing_debug_implementations, clippy::needless_pass_by_value)]
#![allow(clippy::needless_pass_by_value)]
#![allow(clippy::needless_lifetimes)] // broken
#![feature(coroutines)]

Expand Down
2 changes: 1 addition & 1 deletion tests/stream.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

#![allow(missing_debug_implementations, clippy::unused_async, clippy::unnecessary_wraps)]
#![allow(clippy::unused_async, clippy::unnecessary_wraps)]
#![allow(
clippy::must_use_candidate,
clippy::needless_lifetimes,
Expand Down

0 comments on commit 2251cbc

Please sign in to comment.