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

change self modifier to reduce clone() #1260

Merged
merged 1 commit into from
Feb 1, 2024
Merged

change self modifier to reduce clone() #1260

merged 1 commit into from
Feb 1, 2024

Conversation

hach1yon
Copy link
Collaborator

@hach1yon hach1yon commented Feb 1, 2024

What Changed

  • I've changed the modifier of the argument in the function 'replace_subtoken()' from &self to self. This helps us to reduce clone() uses.

Evidence

Please describe the functionality gained by merging this pull-request and the evidence that the bug has been fixed.

Memo

This is just a first step to reduce clone uses so we cannot close the issue 787.

Some testcases have failed on this branch but testcases also failed on main branch as I mentioned in slack(https://yamatosecurity2.slack.com/archives/C01BBBC4DU7/p1706798362376809).
Please check this.

Copy link
Collaborator

@fukusuket fukusuket left a comment

Choose a reason for hiding this comment

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

I confirmed the success of the Integration-Test below :) LGTM!!🚀
https://github.com/Yamato-Security/hayabusa/actions/runs/7743398542

Copy link
Collaborator

@hitenkoku hitenkoku left a comment

Choose a reason for hiding this comment

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

Thanks for your pull request.
LGTM.

@hitenkoku hitenkoku merged commit b138609 into main Feb 1, 2024
7 checks passed
@hitenkoku hitenkoku deleted the reduce-clone_#787 branch February 1, 2024 15:48
@hitenkoku hitenkoku restored the reduce-clone_#787 branch February 1, 2024 15:48
@hitenkoku hitenkoku deleted the reduce-clone_#787 branch February 15, 2024 10:55
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.

4 participants