refactor(allocator): fix equatable_if_let clippy warnings#21234
Conversation
There was a problem hiding this comment.
Pull request overview
Removes the clippy::equatable_if_let expectation from bumpalo_alloc.rs by refactoring realloc’s in-place grow/shrink checks into Clippy-approved idioms.
Changes:
- Drop
clippy::equatable_if_letfrom the crate-level#![expect(...)]list. - Replace
if let Ok(()) = ...with.is_ok()forgrow_in_place/shrink_in_placeresults inAlloc::realloc.
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
Continuation of #21231.
7d7e1d8 to
8ef946e
Compare
b1e0324 to
55e4d4d
Compare

Continuation of #21231.