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

refactor!: Memory API Modifications (try_clone/copy, duplicate_in_store) #3874

Merged
merged 1 commit into from
May 18, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented May 17, 2023

  • Change the try_clone and try_copy methods to return a Result<_, MemoryError>
    This is a more informative return type than the previous Option<>,
    and allows handling failure cases better

  • Remove deprecated duplicate_in_store() method

Closes #3810

Partial work for #3799

@theduke theduke requested a review from syrusakbary as a code owner May 17, 2023 17:49
@theduke theduke requested a review from ptitSeb May 17, 2023 17:50
@theduke theduke changed the title refactor!: Memory API modifications (try_clone/copy, duplicate_in_store) refactor!: Memory API Modifications (try_clone/copy, duplicate_in_store) May 17, 2023
@theduke theduke force-pushed the issue-3810-try-clone-return branch 2 times, most recently from 0379991 to 0c92b90 Compare May 17, 2023 21:24
* Change the try_clone and try_copy methods to return a Result<_, MemoryError>
  This is a more informative return type than the previous Option<>,
  and allows handling failure cases better

* Remove deprecated duplicate_in_store() method

Closes #3810
@theduke theduke force-pushed the issue-3810-try-clone-return branch from 0c92b90 to 4f05785 Compare May 18, 2023 00:44
@syrusakbary syrusakbary merged commit e763f08 into master May 18, 2023
@syrusakbary syrusakbary deleted the issue-3810-try-clone-return branch May 18, 2023 09:17
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.

VM Memory try_clone() Should Return a Result
2 participants