diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-05-04 18:11:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-04 18:11:49 -0400 |
| commit | 760d8daaeacf53c39bb4738786a53aa32b3b7372 (patch) | |
| tree | e308e137bafaf956161846ff8b320b4168904967 /tests/rustdoc/private-fields-tuple-struct.rs | |
| parent | df9f9ca99af3daae71586ba3d2a7449346404bba (diff) | |
| parent | 5cbb27ff90b6685a27492dc2b1a23074e6194f9a (diff) | |
| download | rust-760d8daaeacf53c39bb4738786a53aa32b3b7372.tar.gz rust-760d8daaeacf53c39bb4738786a53aa32b3b7372.zip | |
Rollup merge of #140625 - paolobarbolini:vec-extract-if-alt-is-retain_mut, r=Mark-Simulacrum
Suggest `retain_mut` over `retain` as `Vec::extract_if` alternative The docs for `Vec::extract_if` suggest using `Vec::retain` if the user doesn't need the removed item. Given that `extract_if` gives a mutable reference to the evaluated element, `retain_mut` is the most appropriate alternative, not `retain`.
Diffstat (limited to 'tests/rustdoc/private-fields-tuple-struct.rs')
0 files changed, 0 insertions, 0 deletions
