feat: allow map_err like syntax on change_context#9070
feat: allow map_err like syntax on change_context#9070khanhtranngoccva wants to merge 2 commits into
Conversation
PR SummaryLow Risk Overview
The crate is bumped to 0.8.1; tests use Reviewed by Cursor Bugbot for commit 47c732a. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@khanhtranngoccva is attempting to deploy a commit to the HASH Team on Vercel. A member of the Team first needs to authorize it. |
e099556 to
47c732a
Compare
🌟 What is the purpose of this PR?
Report::current_context_mutto access the internal error mutably. This is required if the caller needs to modify or extract non-Clone fields as part of error recovery.ResultExt::change_context_adaptiveto allowmap_errlike syntax. This helps with cases of error propagation where the underlying error needs to be surfaced to the domain level in the current form or in another form.🔍 What does this change?
Report::current_context_mutResultExt::change_context_adaptivePre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
turbo.json's have been updated to reflect this🐾 Next steps
unreachable!panic inReport::current_context_mut🛡 What tests cover this?
test_change_context.rsandtest_conversion.rshave been modified to cover these two functions.❓ How to test this?