Skip to content

Commit 691512a

Browse files
committed
Ignore more clippy lints at workspace level
1 parent 9d9d9cc commit 691512a

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Clippy configuration
22
# https://doc.rust-lang.org/nightly/clippy/lint_configuration.html
33

4+
allow-private-module-inception = true
45
avoid-breaking-exported-api = false
56
disallowed-names = []
67
disallowed-macros = [

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ declare_interior_mutable_const = { level = "allow", priority = 1 } # https://git
7575
doc_markdown = { level = "allow", priority = 1 }
7676
float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725
7777
incompatible_msrv = { level = "allow", priority = 1 } # buggy: doesn't consider cfg, https://github.com/rust-lang/rust-clippy/issues/12280, https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187
78-
lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12270
78+
lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12920
7979
manual_assert = { level = "allow", priority = 1 }
8080
manual_range_contains = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395
8181
missing_errors_doc = { level = "allow", priority = 1 }
82-
module_name_repetitions = { level = "allow", priority = 1 }
82+
module_name_repetitions = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions
8383
nonminimal_bool = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool
84+
range_plus_one = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one
8485
similar_names = { level = "allow", priority = 1 }
8586
single_match = { level = "allow", priority = 1 }
8687
single_match_else = { level = "allow", priority = 1 }

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ enum Kind<'a> {
165165
Powerset { features: Vec<Vec<&'a Feature>> },
166166
}
167167

168-
#[allow(clippy::redundant_closure_for_method_calls)]
169168
fn determine_kind<'a>(
170169
cx: &'a Context,
171170
id: &'a PackageId,
@@ -230,8 +229,8 @@ fn determine_kind<'a>(
230229
.normal()
231230
.iter()
232231
.chain(pkg_features.optional_deps())
233-
.flat_map(|f| f.as_group())
234-
.map(|f| f.as_str())
232+
.flat_map(Feature::as_group)
233+
.map(String::as_str)
235234
.collect();
236235
features.extend(cx.group_features.iter().filter(|&f| {
237236
let all_valid =

0 commit comments

Comments
 (0)