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 24597ec commit fd08c71
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ members = [
[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 @@ -71,6 +70,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: 0 additions & 1 deletion examples/pinned_drop-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#![allow(
dead_code,
missing_debug_implementations,
single_use_lifetimes,
unused_imports,
unused_parens,
Expand Down
2 changes: 1 addition & 1 deletion examples/pinned_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// See ./pinned_drop-expanded.rs for generated code.

#![allow(dead_code, missing_debug_implementations)]
#![allow(dead_code)]

use std::pin::Pin;

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ see [examples] directory for more examples and generated code.
#![warn(unsafe_op_in_unsafe_fn)]
#![warn(
// Lints that may help when writing public library.
missing_debug_implementations,
missing_docs,
clippy::alloc_instead_of_core,
clippy::exhaustive_enums,
Expand Down

0 comments on commit fd08c71

Please sign in to comment.