about summary refs log tree commit diff
path: root/users/wpcarro/gopkgs
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-11-12T13·41-0800
committerclbot <clbot@tvl.fyi>2023-11-25T02·55+0000
commitb5a15989cddd8c1eb05ef648b0df1dc631daf9f2 (patch)
tree6a5cda7b048f029ca3140eaff654e4dca503825c /users/wpcarro/gopkgs
parent875bb26fc314b22f4a6fa2e457cf7ec5a44e7954 (diff)
feat(tvix/eval): add Thunk::unwrap_or_clone() r/7054
This commit adds Thunk::unwrap_or_clone(), which uses
Rc::try_unwrap() to avoid cloning the Value out of a an Rc which has
only one strong reference.

Change-Id: Icacefe0c823dcddf046d90c0c5cd5ed59fe976d4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10037
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: Adam Joseph <adam@westernsemico.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/gopkgs')
0 files changed, 0 insertions, 0 deletions