Conversation
huitseeker
left a comment
There was a problem hiding this comment.
Not a clippy bug. I prefer the fix in 5496f2a
|
That works too but allocates the vector at every call even if |
|
@huitseeker's solution was applied in #2398; though I agree with @adr1anh that we're allocating even when history is off. Note though that the |
|
Closing as discussed offline; included a note to remove the |
|
FWIW, the solution I suggested is from #2396 (not #2398) and was not applied to next, since that PR is still open and is generating some discussion — it's going to be a while. I'm in fact OK with merging this PR, because I would like to prioritize having @plafer would appreciate a stamp if this makes sense to you |
|
Oh, my bad, that was indeed merged 🤦 Don't mind me. |
This seems to be a bug with clippy since the suggestion triggers a borrow checker error.
Note: we use the new
#[expect(clippy::some_warning)]syntax which will trigger a warning in the future if this lint is fixed.