From 2c196e27c429ad6fbf82ac7d800eff7e6c652180 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 29 Sep 2025 17:48:41 +0200 Subject: [PATCH 1/2] uucore/Cargo.toml: add [lints] workspace = true --- src/uucore/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uucore/Cargo.toml b/src/uucore/Cargo.toml index b05bc1564..c18e6a1d4 100644 --- a/src/uucore/Cargo.toml +++ b/src/uucore/Cargo.toml @@ -15,6 +15,9 @@ version.workspace = true [package.metadata.docs.rs] all-features = true +[lints] +workspace = true + [lib] path = "src/lib/lib.rs" From 36b2bd5de0037c1d5338d195ccf5d64b451c8e0c Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 29 Sep 2025 17:49:50 +0200 Subject: [PATCH 2/2] Cargo.toml: disable lints that warn on uucore --- Cargo.toml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 59898b996..a8bc90b5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -637,7 +637,7 @@ pedantic = { level = "deny", priority = -1 } # Eventually the clippy settings from the `[lints]` section should be moved here. # In order to use these, all crates have `[lints] workspace = true` section. [workspace.lints.rust] -unused_qualifications = "warn" +#unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint [workspace.lints.clippy] # The counts were generated with this command: @@ -682,3 +682,27 @@ inline_always = "allow" # 6 fn_params_excessive_bools = "allow" # 6 used_underscore_items = "allow" # 2 should_panic_without_expect = "allow" # 2 + +doc_markdown = "allow" +unused_self = "allow" +map_unwrap_or = "allow" +enum_glob_use = "allow" +ptr_cast_constness = "allow" +if_not_else = "allow" +borrow_as_ptr = "allow" +ptr_as_ptr = "allow" +manual_let_else = "allow" +unnecessary_semicolon = "allow" +bool_to_int_with_if = "allow" +needless_raw_string_hashes = "allow" +unreadable_literal = "allow" +unnested_or_patterns = "allow" +semicolon_if_nothing_returned = "allow" +implicit_hasher = "allow" +struct_field_names = "allow" +doc_link_with_quotes = "allow" +single_char_pattern = "allow" +format_push_string = "allow" +flat_map_option = "allow" +from_iter_instead_of_collect = "allow" +large_types_passed_by_value = "allow"