Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move incoming value ownership on consumption #39

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

rvolosatovs
Copy link
Contributor

Resource methods implicitly borrow the resource, however, to "consume" the value, ownership of it must be moved.
In some way this is similar to https://github.com/WebAssembly/wasi-http/blob/37b91f4f78950f87db61e462ab6dacf85827bc64/wit/types.wit#L426

Copy link
Collaborator

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, thanks!

@Mossaka Mossaka merged commit b6313d4 into WebAssembly:main Feb 12, 2024
1 check passed
@rvolosatovs rvolosatovs deleted the fix/incoming-value-ownership branch February 12, 2024 19:41
rvolosatovs added a commit to rvolosatovs/wasmCloud that referenced this pull request Feb 12, 2024
rvolosatovs added a commit to rvolosatovs/wasmCloud that referenced this pull request Feb 13, 2024
rvolosatovs added a commit to wasmCloud/wasmCloud that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants