Skip to content

Commit 40d0cf0

Browse files
authored
Merge pull request #8771 from cakebaker/clippy_lints_workspace_uucore
clippy: add missing `[lints] workspace = true` to `uucore/Cargo.toml`
2 parents f7490ca + 36b2bd5 commit 40d0cf0

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

Cargo.toml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ pedantic = { level = "deny", priority = -1 }
637637
# Eventually the clippy settings from the `[lints]` section should be moved here.
638638
# In order to use these, all crates have `[lints] workspace = true` section.
639639
[workspace.lints.rust]
640-
unused_qualifications = "warn"
640+
#unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint
641641

642642
[workspace.lints.clippy]
643643
# The counts were generated with this command:
@@ -682,3 +682,27 @@ inline_always = "allow" # 6
682682
fn_params_excessive_bools = "allow" # 6
683683
used_underscore_items = "allow" # 2
684684
should_panic_without_expect = "allow" # 2
685+
686+
doc_markdown = "allow"
687+
unused_self = "allow"
688+
map_unwrap_or = "allow"
689+
enum_glob_use = "allow"
690+
ptr_cast_constness = "allow"
691+
if_not_else = "allow"
692+
borrow_as_ptr = "allow"
693+
ptr_as_ptr = "allow"
694+
manual_let_else = "allow"
695+
unnecessary_semicolon = "allow"
696+
bool_to_int_with_if = "allow"
697+
needless_raw_string_hashes = "allow"
698+
unreadable_literal = "allow"
699+
unnested_or_patterns = "allow"
700+
semicolon_if_nothing_returned = "allow"
701+
implicit_hasher = "allow"
702+
struct_field_names = "allow"
703+
doc_link_with_quotes = "allow"
704+
single_char_pattern = "allow"
705+
format_push_string = "allow"
706+
flat_map_option = "allow"
707+
from_iter_instead_of_collect = "allow"
708+
large_types_passed_by_value = "allow"

src/uucore/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ version.workspace = true
1515
[package.metadata.docs.rs]
1616
all-features = true
1717

18+
[lints]
19+
workspace = true
20+
1821
[lib]
1922
path = "src/lib/lib.rs"
2023

0 commit comments

Comments
 (0)