Skip to content

[branch-53] fix: use try_shrink instead of shrink in try_resize (#20424)#20890

Open
alamb wants to merge 1 commit intoapache:branch-53from
alamb:alamb/backport_20424_branch53
Open

[branch-53] fix: use try_shrink instead of shrink in try_resize (#20424)#20890
alamb wants to merge 1 commit intoapache:branch-53from
alamb:alamb/backport_20424_branch53

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Mar 12, 2026

## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

No issue

## Rationale for this change
The `try_` functions should return errors instead of panicking.

## What changes are included in this PR?
use `try_shrink` instead of `shrink`

## Are these changes tested?
No, `try_shrink` is already tested.

## Are there any user-facing changes?
No
@github-actions github-actions bot added the execution Related to the execution crate label Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

execution Related to the execution crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants