-
Notifications
You must be signed in to change notification settings - Fork 250
refactor: Make StackInputs and StackOutputs Copy #2581
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: Make StackInputs and StackOutputs Copy #2581
Conversation
huitseeker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a line in the CHANGELOG.md
miden-vm/benches/build_trace.rs
Outdated
| .with_library(&CoreLibrary::default()) | ||
| .unwrap(); | ||
| let stack_inputs = stack_inputs.clone(); | ||
| let stack_inputs = stack_inputs; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is now a no-op since StackInputs is Copy. you could just delete it entirely.
huitseeker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
plafer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
There also appear to be some merge conflicts. @avorylli - would you be able to resolve them? |
a37aedc to
edaa754
Compare
edaa754 to
ad18cf3
Compare
Describe your changes
Make
StackInputsandStackOutputsimplementCopytrait since they are wrappers around[Felt; 16]which isCopy.Changes:
Copyderive toStackInputsandStackOutputsstructs.clone()calls in 25 locations across the codebaseCloses #2487
Reopen #2503