Skip to content

Commit 2615eb6

Browse files
committed
chore: silence new nightly clippy lints
The nightly-2026-05-24 bump introduces useless_borrows_in_formatting, manual_assert_eq, needless_return_with_question_mark, and byte_char_slices that fire on upstream rolldown crates. Workspace-level allows only reach rolldown crates with [lints] workspace = true, so the rest are silenced via the cargo clippy CLI in CI. https://claude.ai/code/session_01N7sZTbj8K2QYvMAWUB1Nmz
1 parent a3091f6 commit 2615eb6

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,13 @@ jobs:
174174
- run: |
175175
cargo shear
176176
cargo fmt --check
177-
cargo clippy --all-targets --all-features -- -D warnings
177+
# Allow new clippy lints from the toolchain that fire in upstream
178+
# rolldown crates without a `[lints]` table.
179+
cargo clippy --all-targets --all-features -- -D warnings \
180+
-A clippy::byte_char_slices \
181+
-A clippy::manual_assert_eq \
182+
-A clippy::needless_return_with_question_mark \
183+
-A clippy::useless_borrows_in_formatting
178184
# RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
179185
180186
- uses: crate-ci/typos@aca895bf05aec0cb7dffa6f94495e923224d9f17 # v1.46.2

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ assigning_clones = "allow"
6161
bool_to_int_with_if = "allow"
6262
borrow_deref_ref = "allow"
6363
branches_sharing_code = "allow"
64+
byte_char_slices = "allow"
6465
case_sensitive_file_extension_comparisons = "allow"
6566
cast_possible_truncation = "allow"
6667
cast_precision_loss = "allow"
@@ -87,6 +88,7 @@ items_after_statements = "allow"
8788
iter_with_drain = "allow"
8889
let_and_return = "allow"
8990
literal_string_with_formatting_args = "allow"
91+
manual_assert_eq = "allow"
9092
manual_contains = "allow"
9193
manual_let_else = "allow"
9294
manual_string_new = "allow"
@@ -108,6 +110,7 @@ needless_lifetimes = "allow"
108110
needless_pass_by_value = "allow"
109111
needless_raw_string_hashes = "allow"
110112
needless_return = "allow"
113+
needless_return_with_question_mark = "allow"
111114
new_without_default = "allow"
112115
non_send_fields_in_send_ty = "allow"
113116
option_if_let_else = "allow"
@@ -143,6 +146,7 @@ unused_async = "allow"
143146
unused_self = "allow"
144147
use_self = "allow"
145148
used_underscore_binding = "allow"
149+
useless_borrows_in_formatting = "allow"
146150
useless_conversion = "allow"
147151
useless_format = "allow"
148152
useless_let_if_seq = "allow"

0 commit comments

Comments
 (0)